fix(donate): allow calls to the API without auth
This is also dependent on 170e3dbf4f
This commit is contained in:
committed by
mrugesh
parent
b561599614
commit
ef39ab0e20
@ -25,6 +25,9 @@ const unsubscribedRE = /^\/unsubscribed\//;
|
||||
const unsubscribeRE = /^\/u\/|^\/unsubscribe\/|^\/ue\//;
|
||||
const updateHooksRE = /^\/hooks\/update-paypal$|^\/hooks\/update-stripe$/;
|
||||
|
||||
// note: this would be replaced by webhooks later
|
||||
const donateRE = /^\/donate\/charge-stripe$/;
|
||||
|
||||
const _whiteListREs = [
|
||||
authRE,
|
||||
confirmEmailRE,
|
||||
@ -37,7 +40,8 @@ const _whiteListREs = [
|
||||
statusRE,
|
||||
unsubscribedRE,
|
||||
unsubscribeRE,
|
||||
updateHooksRE
|
||||
updateHooksRE,
|
||||
donateRE
|
||||
];
|
||||
|
||||
export function isWhiteListedPath(path, whiteListREs = _whiteListREs) {
|
||||
|
Reference in New Issue
Block a user