diff --git a/nextjs/ssr/pages/api/hello.ts b/nextjs/ssr/pages/api/hello.ts new file mode 100644 index 0000000..6ab55af --- /dev/null +++ b/nextjs/ssr/pages/api/hello.ts @@ -0,0 +1,12 @@ +import type { NextApiRequest, NextApiResponse } from 'next' + +type ResponseData = { + message: string +} + +export default function handler( + req: NextApiRequest, + res: NextApiResponse +) { + res.status(200).json({ message: 'Hello from Next.js!' }) +}