Class EndpointRouteBuilderExtensions
Contains extension methods for adding Instagile routes to an endpoint builder.
public static class EndpointRouteBuilderExtensions
- Inheritance
-
EndpointRouteBuilderExtensions
- Inherited Members
Methods
MapTheFramework(IEndpointRouteBuilder, Action<EndpointOptions>?, bool)
Add routes for Instagile features. The available routes vary based on which services have been activated and which options have been specified.
public static IEndpointConventionBuilder MapTheFramework(this IEndpointRouteBuilder endpoints, Action<EndpointOptions>? configure = null, bool enableAllRoutesByDefault = true)
Parameters
endpointsIEndpointRouteBuilderThe route builder.
configureAction<EndpointOptions>Optional delegate to configure instagile routes.
enableAllRoutesByDefaultboolWhether to enable all routes by default. Applications concerned with reducing attack surface may want to use this to automatically opt-out of any future routes by default.