diff --git a/index.js b/index.js index f96ce41..22d1643 100644 --- a/index.js +++ b/index.js @@ -19,6 +19,8 @@ app.use(express.urlencoded({ extended: true })); app.use(cookieParser()); // set up static folders app.use(express.static(path.join(__dirname, './assets'))); +app.use("/js", express.static(__dirname + "/assets/js")); +app.use("/css", express.static(__dirname + "/assets/css")); // set ejs view engine app.set('view engine', 'ejs');