mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
fix: proper cancellation handling
This commit is contained in:
@@ -3,6 +3,7 @@ import { z } from "zod";
|
||||
import {
|
||||
ApiErrorSchema,
|
||||
AuthResponseSchema,
|
||||
CancelSubscriptionResponseSchema,
|
||||
CreateCheckoutSessionRequestSchema,
|
||||
CreateCheckoutSessionResponseSchema,
|
||||
CreatePortalSessionResponseSchema,
|
||||
@@ -628,6 +629,17 @@ export const apiContract = c.router({
|
||||
},
|
||||
headers: csrfHeaderSchema,
|
||||
},
|
||||
subscriptionCancel: {
|
||||
method: "POST",
|
||||
path: "/subscription/cancel",
|
||||
body: emptyBodySchema,
|
||||
responses: {
|
||||
200: CancelSubscriptionResponseSchema,
|
||||
404: ApiErrorSchema,
|
||||
500: ApiErrorSchema,
|
||||
},
|
||||
headers: csrfHeaderSchema,
|
||||
},
|
||||
subscriptionGet: {
|
||||
method: "GET",
|
||||
path: "/subscription/get",
|
||||
|
||||
Reference in New Issue
Block a user