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.

add back feature flagging

Steven Teyec7de7e72208
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/route.ts
index 300bd2c0f7..cc877d7087 100644
--- a/apps/web/app/api/workspaces/[idOrSlug]/route.ts
+++ b/apps/web/app/api/workspaces/[idOrSlug]/route.ts
@@ -30,12 +30,17 @@ export const GET = withWorkspace(
take: 100,
});
+ const flags = await getFeatureFlags({
+ workspaceId: workspace.id,
+ });
+
return NextResponse.json(
{
...WorkspaceSchemaExtended.parse({
...workspace,
id: prefixWorkspaceId(workspace.id),
domains,
+ flags,
}),
},
{ headers },