Retired /api in all the endpoints

This commit is contained in:
Cristiano
2025-11-20 16:33:56 +01:00
parent b76b668097
commit 3ad506f869
50 changed files with 58 additions and 54 deletions

View File

@@ -17,7 +17,7 @@ public class CreateQuotationProductEndpoint(
{
public override void Configure()
{
Post("/api/quotationProduct");
Post("/quotationProducts");
AllowAnonymous();
}

View File

@@ -16,7 +16,7 @@ public class DeleteQuotationProductEndpoint(QuotationProductsRepository quotatio
{
public override void Configure()
{
Delete("/api/quotationProduct/{@ProductId}/{@QuotationId}", x => new {x.ProductId, x.QuotationId});
Delete("/quotationProducts/{@ProductId}/{@QuotationId}", x => new {x.ProductId, x.QuotationId});
AllowAnonymous();
}

View File

@@ -14,7 +14,7 @@ public class PatchQuotationProductQuantityEndpoint(
{
public override void Configure()
{
Patch("/api/quotationProduct/{@ProductId}/{@QuotationId}/Quantity", x => new { x.ProductId, x.QuotationId });
Patch("/quotationProducts/{@ProductId}/{@QuotationId}/Quantity", x => new { x.ProductId, x.QuotationId });
AllowAnonymous();
}