Gwug 4
This commit is contained in:
parent
ab8d0b6880
commit
29437d2d4f
1
index.js
1
index.js
|
|
@ -37,6 +37,7 @@ app.use(express.json());
|
||||||
app.set('view engine', 'ejs');
|
app.set('view engine', 'ejs');
|
||||||
app.set('views', './views');
|
app.set('views', './views');
|
||||||
app.use(express.static('static'));
|
app.use(express.static('static'));
|
||||||
|
app.use(express.urlencoded({ extended: true }));
|
||||||
|
|
||||||
function auth(req, res, next) {
|
function auth(req, res, next) {
|
||||||
if (!req.session || !req.session.authenticated) {
|
if (!req.session || !req.session.authenticated) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue