Skip to content

Commit

Permalink
updated views path
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun authored and Varun committed Oct 4, 2023
1 parent 4f55823 commit 14b7029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ app.use("/css", express.static(__dirname + "/assets/css"));

// set ejs view engine
app.set('view engine', 'ejs');
app.set('views', './views');
app.set('views', path.join(__dirname, '/views'));

// use middleware for ejs layouts
app.use(expressLayouts);
Expand Down

0 comments on commit 14b7029

Please sign in to comment.