mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-15 03:41:36 +00:00
Add API routees
This commit is contained in:
3
typescript-starter/pages/api/hello.js
Normal file
3
typescript-starter/pages/api/hello.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export default (req, res) => {
|
||||
res.status(200).json({ text: 'Hello' })
|
||||
}
|
||||
Reference in New Issue
Block a user