From d00a255f61004ecbdf2330eb7e61e91600ad16c3 Mon Sep 17 00:00:00 2001 From: Maciej Kotowski Date: Wed, 6 Oct 2021 20:55:28 +0200 Subject: [PATCH] commmnt session --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index cfba594..0e5a642 100644 --- a/index.js +++ b/index.js @@ -107,7 +107,7 @@ app.post("/api/createEvent", (req, res) => { res.status(200).json(data); }); }); -app.post("/api/getSessioniId", (req, res) => { +/*app.post("/api/getSessioniId", async (req, res) => { try { const id = await events.findOne({_id:req.body.id}); if (!id) throw Error("something went wrong"); @@ -116,7 +116,7 @@ app.post("/api/getSessioniId", (req, res) => { } catch (err) { res.status(400).json({ msg: err }); } - }); + });*/ app.use((req, res, next) => { res.sendFile(path.join(__dirname + "/client/build/index.html"));