add Ep receipt
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
import { Body, Controller, Post } from "@nestjs/common";
|
||||
import { Body, Controller, Post, UseGuards } from "@nestjs/common";
|
||||
import { OperationsService } from "./operations.services";
|
||||
import { chargePrintDto } from "./dto/operations.dto";
|
||||
import { JwtAuthGuard } from "src/user/jwt.guard";
|
||||
|
||||
@Controller('operations')
|
||||
export class OperationsController{
|
||||
constructor(private readonly operationsService:OperationsService){}
|
||||
|
||||
|
||||
@Post()
|
||||
async Login(@Body() data) {
|
||||
return this.operationsService.chargePrint(data,data.userid);
|
||||
async Login(@Body() data:chargePrintDto) {
|
||||
return this.operationsService.chargePrint(data,data.id_cuenta);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user