One useful api
This commit is contained in:
7
pages/api/ping.ts
Normal file
7
pages/api/ping.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
||||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
export default function handler(_req: NextApiRequest, res: NextApiResponse<string>) {
|
||||
res.status(200).send("Pong!");
|
||||
res.end();
|
||||
}
|
||||
Reference in New Issue
Block a user