diff --git a/index.js b/index.js index e3fd6da..ca3b391 100644 --- a/index.js +++ b/index.js @@ -5,9 +5,9 @@ const bodyParser = require("body-parser"); const e = require('express'); const app = express(); -app.set("view-engine","ejs"); -app.engine('ejs', require('ejs').__express); -app.use(express.static(__dirname+'/public')) +app.set("views", __dirname + "/views"); +app.set("view engine", "ejs"); +app.use(express.static(__dirname + "public")); app.use(bodyParser.urlencoded({ extended: true })); const defaultSessionSecret = 'mydefaultsecretkey';