Moved .RequireAuthentication() to endpoints, removed it from EndpointGroup

This commit is contained in:
2026-09-15 08:37:08 +02:00
parent b239c402fa
commit 364fe65e0d
77 changed files with 86 additions and 6 deletions
@@ -21,6 +21,7 @@ public class GetEvidenceFilesEndpoint : IEndpoint
var r => Results.InternalServerError(r.Errors.ToProblems())
})
.WithDescription("Get a list of all uploaded evidence files metadata")
.RequireAuthorization(Constants.MainScope)
.WithName(typeof(GetEvidenceFilesEndpoint).ToEndpointName())
.MapToApiVersion(new ApiVersion(1))
.Produces<Domain.Models.Evidence[]>(StatusCodes.Status200OK)