forked from sanchezvem/PyroFetes
Retired /api in all the endpoints
This commit is contained in:
@@ -10,7 +10,7 @@ public class GetAllProductsEndpoint(ProductsRepository productsRepository) : End
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/products");
|
||||
Get("/products");
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ public class GetProductEndpoint(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Get("/api/products/{@Id}", x => new {x.Id});
|
||||
Get("/products/{@Id}", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ public class PatchProductMinimalStockEndpoint(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Patch("/api/products/{@Id}/MinimalStock", x => new { x.Id });
|
||||
Patch("/products/{@Id}/MinimalStock", x => new { x.Id });
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ public class UpdateProductEndpoint(
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put("/api/products/{@Id}", x => new {x.Id});
|
||||
Put("/products/{@Id}", x => new {x.Id});
|
||||
AllowAnonymous();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user