Correction des routes d'api

This commit is contained in:
2025-10-16 15:52:24 +02:00
parent bb5dd63da2
commit 6d564c89ff
15 changed files with 15 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ public class CreateMaterialEndpoint(PyroFetesDbContext pyrofetesdbcontext) : End
{
public override void Configure()
{
Post("/material/create");
Post("Api/materials");
AllowAnonymous();
}

View File

@@ -10,7 +10,7 @@ public class DeleteMaterialEndpoint(PyroFetesDbContext pyrofetesdbcontext) : End
{
public override void Configure()
{
Delete("/materials/{@id}", x => new { x.Id });
Delete("Api/materials/{@id}", x => new { x.Id });
AllowAnonymous();
}

View File

@@ -8,7 +8,7 @@ public class GetAllMaterialsEndpoint(PyroFetesDbContext pyrofetesdbcontext) : En
{
public override void Configure()
{
Get("/material");
Get("Api/materials");
AllowAnonymous();
}

View File

@@ -13,7 +13,7 @@ public class GetMaterialEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpoi
{
public override void Configure()
{
Get("/material/{@id}", x => new { x.Id });
Get("Api/materials/{@id}", x => new { x.Id });
AllowAnonymous();
}

View File

@@ -9,7 +9,7 @@ public class UpdateMaterialEndpoint(PyroFetesDbContext pyrofetesdbcontext) : End
{
public override void Configure()
{
Put("/material/{@id}", x => new { x.Id });
Put("Api/materials/{@id}", x => new { x.Id });
AllowAnonymous();
}