|
|
@ -25,7 +25,7 @@ export class PlatformController { |
|
|
public constructor(private readonly platformService: PlatformService) {} |
|
|
public constructor(private readonly platformService: PlatformService) {} |
|
|
|
|
|
|
|
|
@Get() |
|
|
@Get() |
|
|
@HasPermission(permissions.readPlatforms) |
|
|
@HasPermission(permissions.readPlatformsWithAccountCount) |
|
|
@UseGuards(AuthGuard('jwt'), HasPermissionGuard) |
|
|
@UseGuards(AuthGuard('jwt'), HasPermissionGuard) |
|
|
public async getPlatforms() { |
|
|
public async getPlatforms() { |
|
|
return this.platformService.getPlatformsWithAccountCount(); |
|
|
return this.platformService.getPlatformsWithAccountCount(); |
|
|
|