Table of Contents

Class EndpointRouteBuilderExtensions

Namespace
The.Web
Assembly
Instagile.Web.dll

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

endpoints IEndpointRouteBuilder

The route builder.

configure Action<EndpointOptions>

Optional delegate to configure instagile routes.

enableAllRoutesByDefault bool

Whether 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.

Returns

IEndpointConventionBuilder