The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
cleanup
Kiran Kf047c37aa336
diff --git a/apps/web/app/api/route.ts b/apps/web/app/api/route.tsindex fd0e4d7f84..168f2b8a00 100644--- a/apps/web/app/api/route.ts+++ b/apps/web/app/api/route.ts@@ -5,9 +5,5 @@ import { createDocument } from "zod-openapi";export const runtime = "edge";export function GET() {- let spec = createDocument(openApiObject)-- // spec.paths["/links"]["post"]["parameters"] = {...spec.paths["/links"]["post"]["parameters"], ...{}};-- return NextResponse.json(spec);+ return NextResponse.json(createDocument(openApiObject));}diff --git a/apps/web/old-sdk-test.ts b/apps/web/old-sdk-test.tsindex 8002970b94..619eadd4bb 100644--- a/apps/web/old-sdk-test.ts+++ b/apps/web/old-sdk-test.ts@@ -3,29 +3,7 @@ import Dub from "dub";const dub = new Dub({ baseURL: "/api/v1", token: "my-token" });const testMethods = async () => {- // Create linkawait dub.links.create({ url: "https://example.com" });- // Get link- // .info() not available in the SDK- // await dub.links.info()-- // This expression is not callable.- // Type 'Info' has no call signatures.-- // Update link- await dub.links.update("my-link-id", { url: "https://example.com" });-- // Delete link- await dub.links.deleteLink("my-link-id", { projectSlug: "my-project-slug" });-- // List links- await dub.links.list({ projectSlug: "my-project-slug" });-- // Bulk create links- // .bulk() not available in the SDK- // await dub.links.bulk([- // { url: "https://example.com" },- // { url: "https://example.com" },- // ]);+ await dub.qr.retrieve({});};