feat(guild): add guild and channel list APIs for frontend browser

This commit is contained in:
nav
2026-05-12 15:25:26 +00:00
parent 271e712804
commit 9d2a330f69
6 changed files with 91 additions and 4 deletions

View File

@@ -1,9 +1,17 @@
import { Body, Controller, Post } from '@nestjs/common';
import { Body, Controller, Get, Post } from '@nestjs/common';
import { GuildsService } from './guilds.service';
@Controller('guilds')
export class GuildsController {
constructor(private readonly guildsService: GuildsService) {}
@Get()
list() {
return this.guildsService.list();
}
@Post()
create(@Body() body: Record<string, unknown>) {
return { status: 'todo', action: 'create-guild', received: body };
return this.guildsService.create(body);
}
}