From d0eed645a4276c182d373b00e2b383e0ed190ed7 Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Thu, 27 Oct 2022 09:44:54 +0700 Subject: initial commit --- pages/api/hello.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 pages/api/hello.js (limited to 'pages/api/hello.js') 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' }) +} -- cgit v1.2.3