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