This commit is contained in:
2025-09-22 18:09:41 -06:00
parent 429678dc3b
commit c39faa513b
7 changed files with 83 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
import { Controller, Body, Patch, Param, Delete, Get } from '@nestjs/common';
import { MesaService } from './mesa.service';
import { UpdateMesaDto } from './dto/update-mesa.dto';
@Controller('mesa')
export class MesaController {
constructor(private readonly mesaService: MesaService) {}
@Get('all')
async findAll() {
return this.mesaService.findAll();
}
@Patch(':id')
async updateActivo(
@Param('id') id: number,
@Body() updateMesaDto: UpdateMesaDto,
) {
return this.mesaService.updateActivo(id, updateMesaDto);
}
}