chore: Fix api linting

This commit is contained in:
Bouncey
2019-02-16 00:31:05 +00:00
committed by mrugesh mohapatra
parent 09e563f742
commit 0ccd0a6f77
6 changed files with 25 additions and 22 deletions

View File

@ -11,7 +11,7 @@ export default function() {
return function csrf(req, res, next) {
const path = req.path.split('/')[1];
if (/(^api$|^unauthenticated$|^internal$|^p$)/.test(path)) {
if ((/(^api$|^unauthenticated$|^internal$|^p$)/).test(path)) {
return next();
}
return protection(req, res, next);