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

@@ -10,7 +10,7 @@ public class GetAllProductsEndpoint(ProductsRepository productsRepository) : End
{
public override void Configure()
{
Get("/api/products");
Get("/products");
AllowAnonymous();
}

View File

@@ -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();
}

View File

@@ -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();
}

View File

@@ -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();
}