Retired /api in all the endpoints
This commit is contained in:
@@ -17,7 +17,7 @@ public class CreatePriceEndpoint(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/api/prices");
|
||||
Post("/prices");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user