2025-09-19 17:15:05 -06:00
|
|
|
import { Body, Controller, Post, UseGuards } from "@nestjs/common";
|
2025-09-16 22:37:25 -06:00
|
|
|
import { OperationsService } from "./operations.services";
|
2025-09-19 17:15:05 -06:00
|
|
|
import { chargePrintDto } from "./dto/operations.dto";
|
|
|
|
|
import { JwtAuthGuard } from "src/user/jwt.guard";
|
2025-09-16 22:37:25 -06:00
|
|
|
|
|
|
|
|
@Controller('operations')
|
|
|
|
|
export class OperationsController{
|
|
|
|
|
constructor(private readonly operationsService:OperationsService){}
|
|
|
|
|
|
2025-09-19 17:15:05 -06:00
|
|
|
|
2025-09-17 16:33:57 -06:00
|
|
|
@Post()
|
2025-09-19 17:15:05 -06:00
|
|
|
async Login(@Body() data:chargePrintDto) {
|
|
|
|
|
return this.operationsService.chargePrint(data,data.id_cuenta);
|
2025-09-17 16:33:57 -06:00
|
|
|
}
|
2025-09-16 22:37:25 -06:00
|
|
|
}
|