From 3de68dc9188564496516cae932756443a5c0c962 Mon Sep 17 00:00:00 2001 From: Shu Uesugi Date: Mon, 6 Apr 2020 20:05:26 -0700 Subject: [PATCH] Add API routees --- typescript-starter/pages/api/hello.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 typescript-starter/pages/api/hello.js diff --git a/typescript-starter/pages/api/hello.js b/typescript-starter/pages/api/hello.js new file mode 100644 index 0000000..2e22ab3 --- /dev/null +++ b/typescript-starter/pages/api/hello.js @@ -0,0 +1,3 @@ +export default (req, res) => { + res.status(200).json({ text: 'Hello' }) +}