add toggleActivo
This commit is contained in:
@@ -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() {
|
||||
@@ -23,4 +23,9 @@ export class MesaController {
|
||||
) {
|
||||
return this.mesaService.updateActivo(id, updateMesaDto);
|
||||
}
|
||||
|
||||
@Patch(':id/activo')
|
||||
toggleActivo(@Param('id') id: number) {
|
||||
return this.mesaService.toggleActivo(+id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user