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.

Update route.ts

Steven Tey01f1783a2f0e
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/upload-url/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/upload-url/route.ts
index ff4a3b19b8..6830133725 100644
--- a/apps/web/app/api/workspaces/[idOrSlug]/upload-url/route.ts
+++ b/apps/web/app/api/workspaces/[idOrSlug]/upload-url/route.ts
@@ -5,7 +5,7 @@ import { nanoid } from "@dub/utils";
import { NextResponse } from "next/server";
const schema = z.object({
- folder: z.string(),
+ folder: z.enum(["integration-screenshots"]),
});
// POST /api/workspaces/[idOrSlug]/upload-url – get a signed URL to upload a file to a workspace