chore: comment out auth route

This commit is contained in:
Daniel Avila 2023-03-20 02:58:41 -04:00
parent 0b75d5d6fe
commit d13315c45b

View file

@ -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) {