From e34f3b1442a4b90b563d7cc5cb6b9e9dde1a3a8f Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 22 Jul 2019 01:13:08 +0300 Subject: [PATCH] Fix invalid response in default route --- src/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/index.ts b/src/api/index.ts index c676a8d4..c9b4b65c 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -26,7 +26,7 @@ connect().then(() => { // Default route app.get("/", (req, res) => { - res.end({ status: "cookies" }); + res.json({ status: "cookies", with: "milk" }); }); // Error response