Applied authentik endpoint protection

This commit is contained in:
Khwezi Mngoma
2026-06-04 09:03:07 +02:00
parent d0ec655085
commit 8d8c1436f6
4 changed files with 37 additions and 5 deletions
@@ -0,0 +1,23 @@
using LiteCharms.Features.Abstractions;
using LiteCharms.Features.Api;
using LiteCharms.Features.Extensions;
namespace MidrandBooksApi.Payments.Endpoints;
[ApiVersionTarget(1)]
public class IdentityEndpoint : IEndpoint
{
public void Map(IEndpointRouteBuilder builder)
{
builder.MapGet("security/test", () =>
{
return Results.Ok();
})
.RequireAuthorization()
.WithDescription("Security test endpoint")
.WithName(typeof(IdentityEndpoint).ToEndpointName())
.Produces(StatusCodes.Status200OK)
.WithTags("Security")
.MapToApiVersion(1);
}
}