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.tsx

Kiran K0d28f8e3cc10
diff --git a/apps/web/app/api/qr/route.tsx b/apps/web/app/api/qr/route.tsx
index 74041779c8..79e83f5ff2 100644
--- a/apps/web/app/api/qr/route.tsx
+++ b/apps/web/app/api/qr/route.tsx
@@ -17,10 +17,10 @@ const CORS_HEADERS = {
export async function GET(req: NextRequest) {
try {
- await ratelimitOrThrow(req, "qr");
-
const paramsParsed = getQRCodeQuerySchema.parse(getSearchParams(req.url));
+ await ratelimitOrThrow(req, "qr");
+
const { logo, url, size, level, fgColor, bgColor, margin, hideLogo } =
paramsParsed;