fix(donate): refactor handlers for charges
This commit is contained in:
committed by
Stuart Taylor
parent
e84f021d8b
commit
02e6e711cf
@ -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);
|
||||
|
Reference in New Issue
Block a user