feat: public list integrations
This commit is contained in:
parent
e7999ea151
commit
70be520c0b
2 changed files with 6 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue