|
@@ -1,13 +1,13 @@
|
1
|
1
|
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
2
|
|
-import type { NextApiRequest, NextApiResponse } from 'next'
|
|
2
|
+import type { NextApiRequest, NextApiResponse } from "next";
|
3
|
3
|
|
4
|
4
|
type Data = {
|
5
|
|
- name: string
|
6
|
|
-}
|
|
5
|
+ name: string;
|
|
6
|
+};
|
7
|
7
|
|
8
|
8
|
export default function handler(
|
9
|
9
|
req: NextApiRequest,
|
10
|
10
|
res: NextApiResponse<Data>
|
11
|
11
|
) {
|
12
|
|
- res.status(200).json({ name: 'John Doe' })
|
|
12
|
+ res.status(200).json({ name: "John Doe" });
|
13
|
13
|
}
|