diff options
author | William Harrington <kb0iic@berzerkula.org> | 2019-04-18 00:13:38 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2019-04-18 00:13:38 -0500 |
commit | c7e5760f9f3570d4b0f7d4ea0c4f0ae3ebfcce7e (patch) | |
tree | e83f608863651ffb5b3881d2b50a8689d9f6b7c2 /index.js | |
parent | 8693060de8cbc46baf25599e3de5e3eb4ca35fe4 (diff) |
Add homepage route render
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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'))); |