diff --git a/src/controllers/05-quotation-payment-controller.ts b/src/controllers/05-quotation-payment-controller.ts index 57f03a3..95294aa 100644 --- a/src/controllers/05-quotation-payment-controller.ts +++ b/src/controllers/05-quotation-payment-controller.ts @@ -78,12 +78,12 @@ export class QuotationPayment extends Controller { }); } - @Get("{paymentId}/file") + @Get("{paymentId}/attachment") async listPaymentFile(@Path() quotationId: string, @Path() paymentId: string) { return await listFile(fileLocation.quotation.payment(quotationId, paymentId)); } - @Get("{paymentId}/file/{name}") + @Get("{paymentId}/attachment/{name}") async getPaymentFile( @Request() req: express.Request, @Path() quotationId: string, @@ -95,7 +95,7 @@ export class QuotationPayment extends Controller { ); } - @Put("{paymentId}/file/{name}") + @Put("{paymentId}/attachment/{name}") async uploadPayment( @Request() req: express.Request, @Path() quotationId: string, @@ -122,7 +122,7 @@ export class QuotationPayment extends Controller { ); } - @Delete("{paymentId}/file/{name}") + @Delete("{paymentId}/attachment/{name}") async deletePayment( @Path() quotationId: string, @Path() paymentId: string,