kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/715/head
rodzic
74c84d9c07
commit
dd51230849
|
@ -19,7 +19,7 @@ const stripeValidSubscriptionStatuses = new Set([
|
||||||
])
|
])
|
||||||
|
|
||||||
export function registerV1StripeWebhook(app: OpenAPIHono) {
|
export function registerV1StripeWebhook(app: OpenAPIHono) {
|
||||||
return app.get('/webhooks/stripe', async (ctx) => {
|
return app.post('/webhooks/stripe', async (ctx) => {
|
||||||
const body = await ctx.req.text()
|
const body = await ctx.req.text()
|
||||||
const signature = ctx.req.header('Stripe-Signature')
|
const signature = ctx.req.header('Stripe-Signature')
|
||||||
assert(signature, 400, 'missing signature')
|
assert(signature, 400, 'missing signature')
|
||||||
|
|
Ładowanie…
Reference in New Issue