chore: Fix api linting
This commit is contained in:
committed by
mrugesh mohapatra
parent
09e563f742
commit
0ccd0a6f77
@ -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);
|
||||
|
Reference in New Issue
Block a user