feat(api): add and update webhooks routing
This commit is contained in:
committed by
mrugesh
parent
d8e5f3ebc8
commit
4ee032d664
@ -7,8 +7,8 @@ export default function() {
|
||||
}
|
||||
});
|
||||
return function csrf(req, res, next) {
|
||||
const path = req.path.split('/')[1];
|
||||
if (/^donate\/update-paypal$/.test(path)) {
|
||||
const { path } = req;
|
||||
if (/^\/hooks\/update-paypal$|^\/hooks\/update-stripe$/.test(path)) {
|
||||
return next();
|
||||
}
|
||||
return protection(req, res, next);
|
||||
|
Reference in New Issue
Block a user