mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
feat: added v2 api endpoint
This commit is contained in:
parent
73aa843845
commit
6886bd7a44
8
pages/api/v2/index.ts
Normal file
8
pages/api/v2/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