Skip to content

Commit ec7de7e

Browse files
committed
add back feature flagging
1 parent 1d5f07d commit ec7de7e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • apps/web/app/api/workspaces/[idOrSlug]

apps/web/app/api/workspaces/[idOrSlug]/route.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,17 @@ export const GET = withWorkspace(
3030
take: 100,
3131
});
3232

33+
const flags = await getFeatureFlags({
34+
workspaceId: workspace.id,
35+
});
36+
3337
return NextResponse.json(
3438
{
3539
...WorkspaceSchemaExtended.parse({
3640
...workspace,
3741
id: prefixWorkspaceId(workspace.id),
3842
domains,
43+
flags,
3944
}),
4045
},
4146
{ headers },

0 commit comments

Comments
 (0)