Skip to content

Commit 9dc21e8

Browse files
committed
hotfix
1 parent 829a477 commit 9dc21e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ app.use('/public', express.static(staticDir));
8686
if (!config.debug) {
8787
app.use(function (req, res, next) {
8888
if (req.path.indexOf('/api') === -1) {
89-
next(csurf());
89+
return next(csurf());
9090
}
91+
next();
9192
});
9293
app.set('view cache', true);
9394
}

0 commit comments

Comments
 (0)