diff --git a/apps/backend/src/api/routes/integrations.controller.ts b/apps/backend/src/api/routes/integrations.controller.ts index 3c681245..7463136a 100644 --- a/apps/backend/src/api/routes/integrations.controller.ts +++ b/apps/backend/src/api/routes/integrations.controller.ts @@ -42,10 +42,6 @@ export class IntegrationsController { private _postService: PostsService, private _refreshIntegrationService: RefreshIntegrationService ) {} - @Get('/') - getIntegrations() { - return this._integrationManager.getAllIntegrations(); - } @Get('/:identifier/internal-plugs') getInternalPlugs(@Param('identifier') identifier: string) { diff --git a/apps/backend/src/api/routes/no.auth.integrations.controller.ts b/apps/backend/src/api/routes/no.auth.integrations.controller.ts index 673e77e7..9b51c81e 100644 --- a/apps/backend/src/api/routes/no.auth.integrations.controller.ts +++ b/apps/backend/src/api/routes/no.auth.integrations.controller.ts @@ -1,6 +1,7 @@ import { Body, Controller, + Get, HttpException, Param, Post, @@ -33,6 +34,11 @@ export class NoAuthIntegrationsController { private _organizationService: OrganizationService ) {} + @Get('/') + getIntegrations() { + return this._integrationManager.getAllIntegrations(); + } + @Post('/social-connect/:integration') @CheckPolicies([AuthorizationActions.Create, Sections.CHANNEL]) @UseFilters(new NotEnoughScopesFilter())