aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2019-04-18 00:13:38 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2019-04-18 00:13:38 -0500
commitc7e5760f9f3570d4b0f7d4ea0c4f0ae3ebfcce7e (patch)
treee83f608863651ffb5b3881d2b50a8689d9f6b7c2 /index.js
parent8693060de8cbc46baf25599e3de5e3eb4ca35fe4 (diff)
Add homepage route render
Diffstat (limited to 'index.js')
-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')));