From e84515b34f4ca464753e3b922b9e0df06d3e2107 Mon Sep 17 00:00:00 2001 From: John Kirathe Date: Wed, 4 Sep 2024 22:36:17 +0300 Subject: [PATCH] added README.md --- netlify/functions/api.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netlify/functions/api.js b/netlify/functions/api.js index 0339890..f0f3c30 100644 --- a/netlify/functions/api.js +++ b/netlify/functions/api.js @@ -224,14 +224,15 @@ router.post('/refresh', (req, res) => { }); router.get('/check', (req, res) => { - res.status(200).json({ message: 'All working' }); + res.status(200).json({ body: 'All working' }); }); router.get('/users', (req, res) => { res.status(200).json({ users }); }); -router.get("/hello", (req, res) => res.send("Hello World!")); +router.get("/hello", (req, res) => + res.send("Hello World!")); api.use("/api/", router);