import { db } from "../../lib/scripts/db";

export default function handler(req, res) {
	if (req.method === 'GET') {

		// Handle GET request
		res.status(200).json({ message: 'Hello, this is a GET request!' });
	} else {
		// Handle unsupported methods
		res.setHeader('Allow', ['GET']);
		res.status(405).end(`Method ${req.method} Not Allowed`);
	}
}