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 CreateEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpo
{
public override void Configure()
{
Post("/effect/create");
Post("Api/effects");
AllowAnonymous();
}

View File

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

View File

@@ -8,7 +8,7 @@ public class GetAllEffectsEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endp
{
public override void Configure()
{
Get("/effects");
Get("Api/effects");
AllowAnonymous();
}

View File

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

View File

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