diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-10-27 09:44:54 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-10-27 09:44:54 +0700 |
| commit | d0eed645a4276c182d373b00e2b383e0ed190ed7 (patch) | |
| tree | 9ad8d33afcae7b2e9711989859c0535893864856 /pages/api | |
| parent | aba7a8d3e7df1f07285de6cd3b2a5f221a1cd535 (diff) | |
initial commit
Diffstat (limited to 'pages/api')
| -rw-r--r-- | pages/api/hello.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pages/api/hello.js b/pages/api/hello.js new file mode 100644 index 00000000..df63de88 --- /dev/null +++ b/pages/api/hello.js @@ -0,0 +1,5 @@ +// Next.js API route support: https://nextjs.org/docs/api-routes/introduction + +export default function handler(req, res) { + res.status(200).json({ name: 'John Doe' }) +} |
