generated from cerc-io/progressive-web-app-template
9 lines
266 B
TypeScript
9 lines
266 B
TypeScript
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
|
import { NextApiRequest, NextApiResponse } from 'next'
|
|
|
|
const hello = (req: NextApiRequest, res: NextApiResponse) => {
|
|
res.status(200).json({ name: 'John Doe' })
|
|
}
|
|
|
|
export default hello
|