import { NextApiRequest, NextApiResponse } from "next"; export default async function handler( req: NextApiRequest, res: NextApiResponse ) { if (req.method !== "GET") return res.json({ msg: "Failed!" }); res.json({ success: true, }); }