aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.js b/index.js
index 0f5fbe6..faad613 100644
--- a/index.js
+++ b/index.js
@@ -16,6 +16,9 @@ app.set('view engine', 'handlebars');
app.use(express.json());
app.use(express.urlencoded({extended: false}));
+// Homepage Route
+app.get('/', (req, res) => res.render('index'));
+
// Set static directory
app.use(express.static(path.join(__dirname, 'public')));