Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

wip

Kiran Kece1636e9cee
diff --git a/apps/web/app/api/route.ts b/apps/web/app/api/route.ts
index 168f2b8a00..fd0e4d7f84 100644
--- a/apps/web/app/api/route.ts
+++ b/apps/web/app/api/route.ts
@@ -5,5 +5,9 @@ import { createDocument } from "zod-openapi";
export const runtime = "edge";
export function GET() {
- return NextResponse.json(createDocument(openApiObject));
+ let spec = createDocument(openApiObject)
+
+ // spec.paths["/links"]["post"]["parameters"] = {...spec.paths["/links"]["post"]["parameters"], ...{}};
+
+ return NextResponse.json(spec);
}
diff --git a/apps/web/lib/openapi/links/create-link.ts b/apps/web/lib/openapi/links/create-link.ts
index 775b746c76..188209697b 100644
--- a/apps/web/lib/openapi/links/create-link.ts
+++ b/apps/web/lib/openapi/links/create-link.ts
@@ -10,11 +10,14 @@ export const createLink: ZodOpenApiOperationObject = {
summary: "Create a new link",
description: "Create a new link for the authenticated workspace.",
requestParams: {
- query: z.object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace to create the link for."),
- }),
+ query: z
+ .object({
+ workspaceId: z
+ .string()
+ .describe("The ID of the workspace to create the link for.")
+
+ })
+ // .openapi({ "x-speakeasy-ignore": true }),
},
requestBody: {
content: {