Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Allow API key auth

Blue Mousef22cc83f780a
diff --git a/backend/apps/cloud/src/feature-flag/feature-flag.controller.ts b/backend/apps/cloud/src/feature-flag/feature-flag.controller.ts
index 7e77e8118..39ccb93b5 100644
--- a/backend/apps/cloud/src/feature-flag/feature-flag.controller.ts
+++ b/backend/apps/cloud/src/feature-flag/feature-flag.controller.ts
@@ -77,7 +77,7 @@ export class FeatureFlagController {
@ApiBearerAuth()
@Get('/project/:projectId')
- @Auth(false, true)
+ @Auth(true, true)
@ApiResponse({ status: 200, type: [FeatureFlagDto] })
@ApiOperation({ summary: 'Get all feature flags for a project' })
async getProjectFeatureFlags(
@@ -124,7 +124,7 @@ export class FeatureFlagController {
@ApiBearerAuth()
@Get('/:flagId')
- @Auth(false, true)
+ @Auth(true, true)
@ApiResponse({ status: 200, type: FeatureFlagDto })
@ApiOperation({ summary: 'Get a feature flag by ID' })
async getFeatureFlag(
@@ -546,7 +546,7 @@ export class FeatureFlagController {
@ApiBearerAuth()
@Get('/:id/stats')
- @Auth(false, true)
+ @Auth(true, true)
@ApiResponse({ status: 200, type: FeatureFlagStatsDto })
@ApiOperation({ summary: 'Get statistics for a feature flag' })
async getFeatureFlagStats(
@@ -648,7 +648,7 @@ export class FeatureFlagController {
@ApiBearerAuth()
@Get('/:id/profiles')
- @Auth(false, true)
+ @Auth(true, true)
@ApiResponse({ status: 200, type: FeatureFlagProfilesResponseDto })
@ApiOperation({
summary: 'Get profiles who have evaluated a feature flag',