15 lines
431 B
C#
15 lines
431 B
C#
|
|
namespace IdentityShroud.Api;
|
||
|
|
|
||
|
|
public static class EndpointRouteBuilderExtensions
|
||
|
|
{
|
||
|
|
public static RouteHandlerBuilder Validate<TDto>(this RouteHandlerBuilder builder) where TDto : class
|
||
|
|
=> builder.AddEndpointFilter<ValidateFilter<TDto>>();
|
||
|
|
|
||
|
|
public static void MapApis(this IEndpointRouteBuilder erp)
|
||
|
|
{
|
||
|
|
RealmApi.MapRealmEndpoints(erp);
|
||
|
|
|
||
|
|
OpenIdEndpoints.MapEndpoints(erp);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|