import { Controller, Get } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { IChannel } from '../interfaces/channel.interface'; import { IClient } from '../interfaces/client.interface'; import { IPopulatedChannel } from '../interfaces/populatedchannel.interface'; import { TeamspeakService } from '../services/teamspeak.service'; @Controller('api') @ApiTags('teamspeak') export class TeamspeakController { constructor(private teamspeakService: TeamspeakService) {} @Get('clients') async getClients(): Promise { return this.teamspeakService.getClients(); } @Get('channels') async getChannels(): Promise { return this.teamspeakService.getChannels(); } @Get('populatedChannelList') async getPopulatedChannelList(): Promise { return this.teamspeakService.getPopulatedChannelList(); } }