feat: public list integrations

This commit is contained in:
Nevo David 2026-02-04 15:14:01 +07:00
parent e7999ea151
commit 70be520c0b
2 changed files with 6 additions and 4 deletions

View file

@ -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) {

View file

@ -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())