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.

Refactor POST route in tags/route.ts

Kiran Kf5cb3f81cbaa
diff --git a/apps/web/app/api/projects/[slug]/tags/route.ts b/apps/web/app/api/projects/[slug]/tags/route.ts
index bc501f2793..22555bbff6 100644
--- a/apps/web/app/api/projects/[slug]/tags/route.ts
+++ b/apps/web/app/api/projects/[slug]/tags/route.ts
@@ -78,10 +78,7 @@ export const POST = withAuth(async ({ req, project, headers }) => {
},
});
- return NextResponse.json<{ data: Tag }>(
- { data: response },
- { headers, status: 201 },
- );
+ return NextResponse.json(response, { headers, status: 201 });
} catch (err) {
const { error, status } = handleApiError(err);
return NextResponse.json<ErrorResponse>({ error }, { headers, status });