Rename webhook and open api urls (#11684)
We want to have fewer base path for routing. We will have: - /files - /webhooks - /graphql - /metadata - /rest - /auth - /healthz I'm moving /open-api under /rest, and centralizing the webhooks (removing /stripe and /cloudflare)
This commit is contained in:
@ -18,7 +18,7 @@ describe('BillingController (integration)', () => {
|
||||
};
|
||||
|
||||
await client
|
||||
.post('/billing/webhooks')
|
||||
.post('/webhooks/stripe')
|
||||
.set('Authorization', `Bearer ${ADMIN_ACCESS_TOKEN}`)
|
||||
.set('stripe-signature', 'correct-signature')
|
||||
.set('Content-Type', 'application/json')
|
||||
@ -29,7 +29,7 @@ describe('BillingController (integration)', () => {
|
||||
});
|
||||
|
||||
await client
|
||||
.post('/billing/webhooks')
|
||||
.post('/webhooks/stripe')
|
||||
.set('Authorization', `Bearer ${ADMIN_ACCESS_TOKEN}`)
|
||||
.set('stripe-signature', 'correct-signature')
|
||||
.set('Content-Type', 'application/json')
|
||||
@ -51,7 +51,7 @@ describe('BillingController (integration)', () => {
|
||||
};
|
||||
|
||||
await client
|
||||
.post('/billing/webhooks')
|
||||
.post('/webhooks/stripe')
|
||||
.set('Authorization', `Bearer ${ADMIN_ACCESS_TOKEN}`)
|
||||
.set('stripe-signature', 'correct-signature')
|
||||
.set('Content-Type', 'application/json')
|
||||
@ -63,7 +63,7 @@ describe('BillingController (integration)', () => {
|
||||
});
|
||||
|
||||
await client
|
||||
.post('/billing/webhooks')
|
||||
.post('/webhooks/stripe')
|
||||
.set('Authorization', `Bearer ${ADMIN_ACCESS_TOKEN}`)
|
||||
.set('stripe-signature', 'correct-signature')
|
||||
.set('Content-Type', 'application/json')
|
||||
@ -83,7 +83,7 @@ describe('BillingController (integration)', () => {
|
||||
};
|
||||
|
||||
await client
|
||||
.post('/billing/webhooks')
|
||||
.post('/webhooks/stripe')
|
||||
.set('Authorization', `Bearer ${ADMIN_ACCESS_TOKEN}`)
|
||||
.set('stripe-signature', 'correct-signature')
|
||||
.set('Content-Type', 'application/json')
|
||||
@ -102,7 +102,7 @@ describe('BillingController (integration)', () => {
|
||||
};
|
||||
|
||||
await client
|
||||
.post('/billing/webhooks')
|
||||
.post('/webhooks/stripe')
|
||||
.set('Authorization', `Bearer ${ADMIN_ACCESS_TOKEN}`)
|
||||
.set('stripe-signature', 'invalid-signature')
|
||||
.set('Content-Type', 'application/json')
|
||||
|
||||
Reference in New Issue
Block a user