feat: added v2 api endpoint

This commit is contained in:
원더 2021-01-04 22:09:00 +09:00
parent 73aa843845
commit 6886bd7a44

8
pages/api/v2/index.ts Normal file
View 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