fix(donate): refactor handlers for charges

This commit is contained in:
Mrugesh Mohapatra
2019-02-07 19:03:18 +05:30
committed by Stuart Taylor
parent e84f021d8b
commit 02e6e711cf
8 changed files with 88 additions and 69 deletions

View File

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