freego_api/ui/pages/api/hello.ts
fry 0339acaaba Add initial api and docker files (#1)
Add the basic setup files for a nextjs interface. Need to set up the board and all that. Should be able to get going with `docker-compose up ui` then you'll see a webpage that's just an input on localhost:3000

Co-authored-by: David Frymoyer <david.frymoyer@gmail.com>
Reviewed-on: #1
Co-authored-by: fry <david.frymoyer@gmail.com>
Co-committed-by: fry <david.frymoyer@gmail.com>
2022-03-05 09:57:20 -05:00

14 lines
307 B
TypeScript

// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'
type Data = {
name: string
}
export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
) {
res.status(200).json({ name: 'John Doe' })
}