This commit is contained in:
2026-02-05 16:17:46 -06:00
2 changed files with 43 additions and 5 deletions
+6 -1
View File
@@ -4,7 +4,7 @@ import { UpdateMesaDto } from './dto/update-mesa.dto';
@Controller('mesa')
export class MesaController {
constructor(private readonly mesaService: MesaService) {}
constructor(private readonly mesaService: MesaService) { }
@Get()
async findAll() {
@@ -24,4 +24,9 @@ export class MesaController {
) {
return this.mesaService.updateActivo(id, updateMesaDto);
}
@Patch(':id/activo')
toggleActivo(@Param('id') id: number) {
return this.mesaService.toggleActivo(+id);
}
}