MAJ routes d'api pour liaison avec front

This commit is contained in:
2025-11-20 14:10:54 +01:00
parent a8d0b99571
commit 157719eae2
49 changed files with 49 additions and 49 deletions

View File

@@ -8,7 +8,7 @@ public class CreateProductCategoryEndpoint(PyroFetesDbContext pyrofetesdbcontext
{
public override void Configure()
{
Post("/api/productcategories");
Post("/productcategories");
AllowAnonymous();
}

View File

@@ -12,7 +12,7 @@ public class DeleteProductCategoryEndpoint(PyroFetesDbContext pyrofetesdbcontext
{
public override void Configure()
{
Delete("/api/productcategories/{@id}", x => new { x.Id });
Delete("/productcategories/{@id}", x => new { x.Id });
AllowAnonymous();
}

View File

@@ -8,7 +8,7 @@ public class GetAllProductCategoriesEndpoint(PyroFetesDbContext pyrofetesdbconte
{
public override void Configure()
{
Get("/api/productcategories");
Get("/productcategories");
AllowAnonymous();
}

View File

@@ -14,7 +14,7 @@ public class GetProductCategoryEndpoint(PyroFetesDbContext pyrofetesdbcontext) :
{
public override void Configure()
{
Get("/api/productcategory/{@id}", x => new { x.Id });
Get("/productcategory/{@id}", x => new { x.Id });
AllowAnonymous();
}

View File

@@ -9,7 +9,7 @@ public class UpdateProductCategoryEndpoint(PyroFetesDbContext pyrofetesdbcontext
{
public override void Configure()
{
Put("/api/productcategory/{@id}", x => new { x.Id });
Put("/productcategory/{@id}", x => new { x.Id });
AllowAnonymous();
}