feat: added reply section

This commit is contained in:
2026-07-28 20:06:15 +03:30
parent 823d43fc75
commit e462606416
13 changed files with 211 additions and 1 deletions
+34
View File
@@ -0,0 +1,34 @@
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { ReplyService } from './reply.service';
import { CreateReplyDto } from './dto/create-reply.dto';
import { UpdateReplyDto } from './dto/update-reply.dto';
@Controller('reply')
export class ReplyController {
constructor(private readonly replyService: ReplyService) {}
@Post()
create(@Body() createReplyDto: CreateReplyDto) {
return this.replyService.create(createReplyDto);
}
@Get()
findAll() {
return this.replyService.findAll();
}
@Get(':id')
findOne(@Param('id') id: string) {
return this.replyService.findOneOrFail(id);
}
@Patch(':id')
update(@Param('id') id: string, @Body() updateReplyDto: UpdateReplyDto) {
return this.replyService.update(id, updateReplyDto);
}
@Delete(':id')
remove(@Param('id') id: string) {
return this.replyService.remove(id);
}
}