This commit is contained in:
3zachm 2022-11-23 14:20:36 -08:00
commit 3ed18f7eda
16 changed files with 7445 additions and 0 deletions
pages/api

13
pages/api/ping.ts Normal file
View file

@ -0,0 +1,13 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from "next";
type Data = {
code: string;
};
export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
) {
res.status(200).json({ code: "pong" });
}