Minor changes

This commit is contained in:
Esther
2020-06-22 17:44:15 +01:00
parent 58c9e84f78
commit db2ba0684b
3 changed files with 4 additions and 3 deletions

4
app.js
View File

@@ -25,11 +25,13 @@ app.use(sassMiddleware({
}));
app.use(express.static(path.join(__dirname, 'public')));
app.disable('x-powered-by');
app.use('/', indexRouter);
// catch 404 and forward to error handler
app.use(function(req, res, next) {
next(createError(404));
next(createError(404);
});
// error handler