feat: use eslint with prettier to format code
This commit is contained in:
committed by
mrugesh mohapatra
parent
be36915605
commit
fc8c71ad16
@ -8,7 +8,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