added guard jwt

This commit is contained in:
2026-02-23 18:16:17 -06:00
parent 472bfebb7a
commit 18b869d681
19 changed files with 112 additions and 53 deletions
+2
View File
@@ -7,11 +7,13 @@ import {
} from '@nestjs/common';
import { ReciboService } from './recibo.service';
import { FindReciboByRangeDto } from './dto/create-recibo.dto';
import { JwtAuthGuard } from 'src/user/jwt.guard';
@Controller('recibo')
export class ReciboController {
constructor(private readonly reciboService: ReciboService) {}
@UseGuards(JwtAuthGuard)
@Post('rango')
async findByDateRange(@Body() data: FindReciboByRangeDto) {
return this.reciboService.findByDateRange(data.desde, data.hasta);