mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
feat: added api endpoint
This commit is contained in:
parent
eca815c560
commit
9a6ba87de9
8
pages/api/index.ts
Normal file
8
pages/api/index.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next'
|
||||
|
||||
const HelloWorld:NextApiHandler = (_req: NextApiRequest, res: NextApiResponse) =>{
|
||||
res.statusCode = 200
|
||||
res.json({ happy: 'hacking' })
|
||||
}
|
||||
|
||||
export default HelloWorld
|
||||
Loading…
x
Reference in New Issue
Block a user