Share via


SpaRouteExtensions.MapSpaFallbackRoute Method

Definition

Overloads

MapSpaFallbackRoute(IRouteBuilder, String, Object, Object, Object)

Configures a route that is automatically bypassed if the requested URL appears to be for a static file (e.g., if it has a filename extension).

MapSpaFallbackRoute(IRouteBuilder, String, String, Object, Object, Object)

Configures a route that is automatically bypassed if the requested URL appears to be for a static file (e.g., if it has a filename extension).

MapSpaFallbackRoute(IRouteBuilder, String, Object, Object, Object)

Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs

Configures a route that is automatically bypassed if the requested URL appears to be for a static file (e.g., if it has a filename extension).

public static void MapSpaFallbackRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, object defaults, object constraints = default, object dataTokens = default);
static member MapSpaFallbackRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * obj * obj * obj -> unit
<Extension()>
Public Sub MapSpaFallbackRoute (routeBuilder As IRouteBuilder, name As String, defaults As Object, Optional constraints As Object = Nothing, Optional dataTokens As Object = Nothing)

Parameters

routeBuilder
IRouteBuilder

The IRouteBuilder.

name
String

The route name.

defaults
Object

Default route parameters.

constraints
Object

Route constraints.

dataTokens
Object

Route data tokens.

Applies to

MapSpaFallbackRoute(IRouteBuilder, String, String, Object, Object, Object)

Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs

Configures a route that is automatically bypassed if the requested URL appears to be for a static file (e.g., if it has a filename extension).

public static void MapSpaFallbackRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string templatePrefix, object defaults, object constraints = default, object dataTokens = default);
static member MapSpaFallbackRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * obj * obj * obj -> unit
<Extension()>
Public Sub MapSpaFallbackRoute (routeBuilder As IRouteBuilder, name As String, templatePrefix As String, defaults As Object, Optional constraints As Object = Nothing, Optional dataTokens As Object = Nothing)

Parameters

routeBuilder
IRouteBuilder

The IRouteBuilder.

name
String

The route name.

templatePrefix
String

The template prefix.

defaults
Object

Default route parameters.

constraints
Object

Route constraints.

dataTokens
Object

Route data tokens.

Applies to