From 6d564c89fffcf97aafd7f3fdf2b1f07632d528f0 Mon Sep 17 00:00:00 2001 From: colesm Date: Thu, 16 Oct 2025 15:52:24 +0200 Subject: [PATCH] Correction des routes d'api --- PyroFetes/Endpoints/Color/CreateColorEndpoint.cs | 2 +- PyroFetes/Endpoints/Color/DeleteColorEndpoint.cs | 2 +- PyroFetes/Endpoints/Color/GetAllColorsEndpoint.cs | 2 +- PyroFetes/Endpoints/Color/GetColorEndpoint.cs | 2 +- PyroFetes/Endpoints/Color/UpdateColorEndpoint.cs | 2 +- PyroFetes/Endpoints/Effect/CreateEffectEndpoint.cs | 2 +- PyroFetes/Endpoints/Effect/DeleteEffectEndpoint.cs | 2 +- PyroFetes/Endpoints/Effect/GetAllEffectsEndpoint.cs | 2 +- PyroFetes/Endpoints/Effect/GetEffectEndpoint.cs | 2 +- PyroFetes/Endpoints/Effect/UpdateEffectEndpoint.cs | 2 +- PyroFetes/Endpoints/Material/CreateMaterialEndpoint.cs | 2 +- PyroFetes/Endpoints/Material/DeleteMaterialEndpoint.cs | 2 +- PyroFetes/Endpoints/Material/GetAllMaterialsEndpoint.cs | 2 +- PyroFetes/Endpoints/Material/GetMaterialEndpoint.cs | 2 +- PyroFetes/Endpoints/Material/UpdateMaterialEndpoint.cs | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/PyroFetes/Endpoints/Color/CreateColorEndpoint.cs b/PyroFetes/Endpoints/Color/CreateColorEndpoint.cs index 4573468..cb8135d 100644 --- a/PyroFetes/Endpoints/Color/CreateColorEndpoint.cs +++ b/PyroFetes/Endpoints/Color/CreateColorEndpoint.cs @@ -8,7 +8,7 @@ public class CreateColorEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpoi { public override void Configure() { - Post("/color/create"); + Post("Api/colors"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Color/DeleteColorEndpoint.cs b/PyroFetes/Endpoints/Color/DeleteColorEndpoint.cs index 51c2505..2b4713d 100644 --- a/PyroFetes/Endpoints/Color/DeleteColorEndpoint.cs +++ b/PyroFetes/Endpoints/Color/DeleteColorEndpoint.cs @@ -12,7 +12,7 @@ public class DeleteColorEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpoi { public override void Configure() { - Delete("/colors/{@id}", x => new { x.Id }); + Delete("Api/colors/{@id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Color/GetAllColorsEndpoint.cs b/PyroFetes/Endpoints/Color/GetAllColorsEndpoint.cs index a2f9b39..fcfd0e2 100644 --- a/PyroFetes/Endpoints/Color/GetAllColorsEndpoint.cs +++ b/PyroFetes/Endpoints/Color/GetAllColorsEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllColorsEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpo { public override void Configure() { - Get("/colors"); + Get("Api/colors"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Color/GetColorEndpoint.cs b/PyroFetes/Endpoints/Color/GetColorEndpoint.cs index dcacb8a..bec8c0d 100644 --- a/PyroFetes/Endpoints/Color/GetColorEndpoint.cs +++ b/PyroFetes/Endpoints/Color/GetColorEndpoint.cs @@ -13,7 +13,7 @@ public class GetColorEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpoint< { public override void Configure() { - Get("/colors/{@id}", x => new { x.Id}); + Get("Api/colors/{@id}", x => new { x.Id}); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Color/UpdateColorEndpoint.cs b/PyroFetes/Endpoints/Color/UpdateColorEndpoint.cs index b05c896..1cbb3c9 100644 --- a/PyroFetes/Endpoints/Color/UpdateColorEndpoint.cs +++ b/PyroFetes/Endpoints/Color/UpdateColorEndpoint.cs @@ -9,7 +9,7 @@ public class UpdateColorEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpoi { public override void Configure() { - Put("/colors/{@id}", x => new { x.Id }); + Put("Api/colors/{@id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Effect/CreateEffectEndpoint.cs b/PyroFetes/Endpoints/Effect/CreateEffectEndpoint.cs index 1663ef3..9596977 100644 --- a/PyroFetes/Endpoints/Effect/CreateEffectEndpoint.cs +++ b/PyroFetes/Endpoints/Effect/CreateEffectEndpoint.cs @@ -8,7 +8,7 @@ public class CreateEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpo { public override void Configure() { - Post("/effect/create"); + Post("Api/effects"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Effect/DeleteEffectEndpoint.cs b/PyroFetes/Endpoints/Effect/DeleteEffectEndpoint.cs index 98549dc..f9d4ef6 100644 --- a/PyroFetes/Endpoints/Effect/DeleteEffectEndpoint.cs +++ b/PyroFetes/Endpoints/Effect/DeleteEffectEndpoint.cs @@ -11,7 +11,7 @@ public class DeleteEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpo { public override void Configure() { - Delete("/effects/{@id}", x => new { x.Id }); + Delete("Api/effects/{@id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Effect/GetAllEffectsEndpoint.cs b/PyroFetes/Endpoints/Effect/GetAllEffectsEndpoint.cs index fd1c903..753131a 100644 --- a/PyroFetes/Endpoints/Effect/GetAllEffectsEndpoint.cs +++ b/PyroFetes/Endpoints/Effect/GetAllEffectsEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllEffectsEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endp { public override void Configure() { - Get("/effects"); + Get("Api/effects"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Effect/GetEffectEndpoint.cs b/PyroFetes/Endpoints/Effect/GetEffectEndpoint.cs index cd2a91d..9096551 100644 --- a/PyroFetes/Endpoints/Effect/GetEffectEndpoint.cs +++ b/PyroFetes/Endpoints/Effect/GetEffectEndpoint.cs @@ -13,7 +13,7 @@ public class GetEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpoint { public override void Configure() { - Get("/effect/{@id}", x => new { x.Id }); + Get("Api/effects/{@id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Effect/UpdateEffectEndpoint.cs b/PyroFetes/Endpoints/Effect/UpdateEffectEndpoint.cs index ac5bffe..468691f 100644 --- a/PyroFetes/Endpoints/Effect/UpdateEffectEndpoint.cs +++ b/PyroFetes/Endpoints/Effect/UpdateEffectEndpoint.cs @@ -9,7 +9,7 @@ public class UpdateEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpo { public override void Configure() { - Put("/effect/{@id}", x => new { x.Id }); + Put("Api/effects/{@id}", x => new { x.Id }); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Material/CreateMaterialEndpoint.cs b/PyroFetes/Endpoints/Material/CreateMaterialEndpoint.cs index 545b96d..7d175af 100644 --- a/PyroFetes/Endpoints/Material/CreateMaterialEndpoint.cs +++ b/PyroFetes/Endpoints/Material/CreateMaterialEndpoint.cs @@ -8,7 +8,7 @@ public class CreateMaterialEndpoint(PyroFetesDbContext pyrofetesdbcontext) : End { public override void Configure() { - Post("/material/create"); + Post("Api/materials"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Material/DeleteMaterialEndpoint.cs b/PyroFetes/Endpoints/Material/DeleteMaterialEndpoint.cs index 6fbdd46..82aea59 100644 --- a/PyroFetes/Endpoints/Material/DeleteMaterialEndpoint.cs +++ b/PyroFetes/Endpoints/Material/DeleteMaterialEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/Material/GetAllMaterialsEndpoint.cs b/PyroFetes/Endpoints/Material/GetAllMaterialsEndpoint.cs index 9f6416b..292959a 100644 --- a/PyroFetes/Endpoints/Material/GetAllMaterialsEndpoint.cs +++ b/PyroFetes/Endpoints/Material/GetAllMaterialsEndpoint.cs @@ -8,7 +8,7 @@ public class GetAllMaterialsEndpoint(PyroFetesDbContext pyrofetesdbcontext) : En { public override void Configure() { - Get("/material"); + Get("Api/materials"); AllowAnonymous(); } diff --git a/PyroFetes/Endpoints/Material/GetMaterialEndpoint.cs b/PyroFetes/Endpoints/Material/GetMaterialEndpoint.cs index 2f60a18..2745451 100644 --- a/PyroFetes/Endpoints/Material/GetMaterialEndpoint.cs +++ b/PyroFetes/Endpoints/Material/GetMaterialEndpoint.cs @@ -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(); } diff --git a/PyroFetes/Endpoints/Material/UpdateMaterialEndpoint.cs b/PyroFetes/Endpoints/Material/UpdateMaterialEndpoint.cs index cc52412..7260213 100644 --- a/PyroFetes/Endpoints/Material/UpdateMaterialEndpoint.cs +++ b/PyroFetes/Endpoints/Material/UpdateMaterialEndpoint.cs @@ -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(); }