From ec7de7e72208084ff409b3f3c646919fe5c34588 Mon Sep 17 00:00:00 2001 From: Steven Tey Date: Thu, 15 May 2025 07:49:22 -1000 Subject: [PATCH] add back feature flagging --- apps/web/app/api/workspaces/[idOrSlug]/route.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/web/app/api/workspaces/[idOrSlug]/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/route.ts index 300bd2c0f77..cc877d7087f 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 },