diff options
-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'))); |