mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2025-09-15 09:53:28 +01:00
Minor changes
This commit is contained in:
4
app.js
4
app.js
@@ -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
|
||||
|
Reference in New Issue
Block a user