This commit is contained in:
2026-03-11 20:42:34 +03:30
parent 8c5f1d4d49
commit 007db7f9bd
30 changed files with 393 additions and 219 deletions
@@ -1,4 +1,4 @@
import { Body, Controller, Get, Param, Post, Put } from '@nestjs/common'
import { Body, Controller, Get, Param, Patch, Post } from '@nestjs/common'
import { ApiTags } from '@nestjs/swagger'
import { CreateGuildDto } from './dto/create-guild.dto'
import { UpdateGuildDto } from './dto/update-guild.dto'
@@ -24,7 +24,7 @@ export class GuildsController {
return await this.guildsService.create(data)
}
@Put(':id')
@Patch(':id')
async update(@Param('id') id: string, @Body() data: UpdateGuildDto) {
return await this.guildsService.update(id, data)
}