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 CreatePriceEndpoint(
{
public override void Configure()
{
Post("/api/prices");
Post("/prices");
AllowAnonymous();
}

View File

@@ -16,7 +16,7 @@ public class DeletePriceEndpoint(PricesRepository pricesRepository) : Endpoint<D
{
public override void Configure()
{
Delete("/api/prices/{@ProductId}/{@SupplierId}", x => new {x.ProductId, x.SupplierId});
Delete("/prices/{@ProductId}/{@SupplierId}", x => new {x.ProductId, x.SupplierId});
AllowAnonymous();
}

View File

@@ -13,7 +13,7 @@ public class PatchPriceEndpoint(
{
public override void Configure()
{
Patch("/api/prices/{@ProductId}/{@SupplierId}/SellingPrice", x => new { x.ProductId, x.SupplierId });
Patch("/prices/{@ProductId}/{@SupplierId}/SellingPrice", x => new { x.ProductId, x.SupplierId });
AllowAnonymous();
}