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.

fix crawl route

Steven Teyc63f0431f4b0
diff --git a/apps/web/app/api/links/crawl/bitly/route.ts b/apps/web/app/api/links/crawl/bitly/route.ts
index e7da83c463..fa763813d2 100644
--- a/apps/web/app/api/links/crawl/bitly/route.ts
+++ b/apps/web/app/api/links/crawl/bitly/route.ts
@@ -18,7 +18,7 @@ export const POST = async (req: Request) => {
// @see: https://support.bitly.com/hc/en-us/articles/360030780892-What-characters-are-supported-when-customizing-links
const invalidBitlyKeyRegex = /[`~,.<>;':"/\\[\]^{}()=+!*@&$£?%#|]/;
if (invalidBitlyKeyRegex.test(key)) {
- return NextResponse.json({ error: "Invalid key" }, { status: 400 });
+ return NextResponse.json({ error: "Not found" }, { status: 404 });
}
const link = await crawlBitlyLink({ domain, key, workspaceId });