From 0159ae658074162853b566890c4f05ec6b7b9501 Mon Sep 17 00:00:00 2001 From: SIDDHANT DIXIT Date: Thu, 13 Oct 2022 13:02:34 +0530 Subject: [PATCH] Updated Default Route --- app.js | 2 +- views/login.pug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index b172afd..e5ec2f5 100644 --- a/app.js +++ b/app.js @@ -81,7 +81,7 @@ app.get("/", async (req, res) => { app.use('/dashboard',require('./server/routes/router')); app.get("/", (req, res) => { - res.render('index'); + res.redirect('/login'); }); diff --git a/views/login.pug b/views/login.pug index 7f8e82c..8b938bc 100644 --- a/views/login.pug +++ b/views/login.pug @@ -1,7 +1,7 @@ - - title = "Login" + - title = "LinkStack" include partials/header.pug