kopia lustrzana https://github.com/cloudflare/wildebeest
keep /api/v1/statuses/[id]/reblog or /api/v1/statuses/[id]/favourite authentificated
rodzic
8712d5d503
commit
32d625151e
|
@ -49,7 +49,7 @@ export async function main(context: EventContext<Env, any, any>) {
|
|||
if (
|
||||
url.pathname === '/oauth/token' ||
|
||||
url.pathname === '/oauth/authorize' || // Cloudflare Access runs on /oauth/authorize
|
||||
url.pathname === '/api/v1/statuses' || // Unless private https://docs.joinmastodon.org/methods/statuses/#get
|
||||
/^\/api\/v1\/statuses\/.*(?<!(reblog|favourite))$/.test((url.pathname) || // Unless private https://docs.joinmastodon.org/methods/statuses/#get
|
||||
url.pathname === '/api/v1/instance' ||
|
||||
url.pathname === '/api/v2/instance' ||
|
||||
url.pathname === '/api/v1/instance/peers' ||
|
||||
|
|
Ładowanie…
Reference in New Issue