Browse Source

get channel/:id/users

master
Pheuw1 2 years ago
parent
commit
ccac75f503
  1. 5
      back/volume/src/chat/chat.controller.ts

5
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<User[]> {
return (await this.channelService.getChannel(id)).users
}
@Post(':id/admin')
async addAdmin (
@Param('id', ParseIntPipe) id: number,

Loading…
Cancel
Save