diff --git a/back/volume/src/chat/chat.controller.ts b/back/volume/src/chat/chat.controller.ts index b6b7a27..b8fc61f 100644 --- a/back/volume/src/chat/chat.controller.ts +++ b/back/volume/src/chat/chat.controller.ts @@ -83,6 +83,11 @@ export class ChatController { await this.channelService.save(channel) } + @Get(':id/users') + async getUsersOfChannel (@Param('id') id: number): Promise { + return (await this.channelService.getChannel(id)).users + } + @Post(':id/admin') async addAdmin ( @Param('id', ParseIntPipe) id: number,