From d13315c45bd6b433db84db3372d7e70af57f9741 Mon Sep 17 00:00:00 2001 From: Daniel Avila Date: Mon, 20 Mar 2023 02:58:41 -0400 Subject: [PATCH] chore: comment out auth route --- api/server/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api/server/index.js b/api/server/index.js index cb9781623a..93804a4390 100644 --- a/api/server/index.js +++ b/api/server/index.js @@ -25,10 +25,12 @@ app.use(session({ saveUninitialized: true, })) -app.get('/', routes.authenticatedOrRedirect, function (req, res) { - console.log(path.join(projectPath, 'public', 'index.html')); - res.sendFile(path.join(projectPath, 'public', 'index.html')); -}); +/* chore: potential redirect error here, can only comment out this block; + comment back in if using auth routes i guess */ +// app.get('/', routes.authenticatedOrRedirect, function (req, res) { +// console.log(path.join(projectPath, 'public', 'index.html')); +// res.sendFile(path.join(projectPath, 'public', 'index.html')); +// }); app.get('/api/me', function (req, res) { if (userSystemEnabled) {