MAJ avec l'ajout de la gestion d'authentification

This commit is contained in:
2025-12-08 12:26:46 +01:00
parent f60d3443ca
commit 78e5a4e960
51 changed files with 25 additions and 80 deletions

View File

@@ -9,7 +9,6 @@ public class CreateEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpo
public override void Configure()
{
Post("/effects");
AllowAnonymous();
}
public override async Task HandleAsync(CreateEffectDto req, CancellationToken ct)

View File

@@ -12,7 +12,6 @@ public class DeleteEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpo
public override void Configure()
{
Delete("/effects/{@id}", x => new { x.Id });
AllowAnonymous();
}
public override async Task HandleAsync(DeleteEffectRequest req, CancellationToken ct)

View File

@@ -9,7 +9,6 @@ public class GetAllEffectsEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endp
public override void Configure()
{
Get("/effects");
AllowAnonymous();
}
public override async Task HandleAsync(CancellationToken ct)

View File

@@ -14,7 +14,6 @@ public class GetEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpoint
public override void Configure()
{
Get("/effects/{@id}", x => new { x.Id });
AllowAnonymous();
}
public override async Task HandleAsync(GetEffectRequest req, CancellationToken ct)

View File

@@ -10,8 +10,7 @@ public class UpdateEffectEndpoint(PyroFetesDbContext pyrofetesdbcontext) : Endpo
public override void Configure()
{
Put("/effects/{@id}", x => new { x.Id });
AllowAnonymous();
}
}
public override async Task HandleAsync(UpdateEffectDto req, CancellationToken ct)
{