2026-02-27 17:57:42 +00:00
|
|
|
namespace IdentityShroud.Api;
|
|
|
|
|
|
|
|
|
|
public static class EndpointRouteBuilderExtensions
|
|
|
|
|
{
|
2026-03-16 19:15:04 +01:00
|
|
|
public static IEndpointConventionBuilder Validate<TDto>(this IEndpointConventionBuilder builder)
|
|
|
|
|
where TDto : class
|
|
|
|
|
=> builder.AddEndpointFilter<IEndpointConventionBuilder, ValidateFilter<TDto>>();
|
|
|
|
|
|
2026-02-27 17:57:42 +00:00
|
|
|
public static void MapApis(this IEndpointRouteBuilder erp)
|
|
|
|
|
{
|
|
|
|
|
RealmApi.MapRealmEndpoints(erp);
|
|
|
|
|
|
|
|
|
|
OpenIdEndpoints.MapEndpoints(erp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|