|
|
@@ -1,3 +1,4 @@
|
|
|
+const httpErrorHandler = require('../middlewares/http-error-handler');
|
|
|
|
|
|
|
|
|
module.exports = function(crowi, app) {
|
|
|
@@ -111,6 +112,9 @@ module.exports = function(crowi, app) {
|
|
|
sessionMiddleware(req, res, next);
|
|
|
});
|
|
|
|
|
|
+ // http-error-handler
|
|
|
+ app.use(httpErrorHandler);
|
|
|
+
|
|
|
// passport
|
|
|
debug('initialize Passport');
|
|
|
app.use(passport.initialize());
|