13 lines
278 B
TypeScript
13 lines
278 B
TypeScript
|
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,
|
||
|
});
|
||
|
}
|