Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SpaRouteExtensions Class

Definition

Namespace:
Microsoft.AspNetCore.Builder
Assembly:
Microsoft.AspNetCore.SpaServices.dll
Package:
Microsoft.AspNetCore.SpaServices v2.0.0
Package:
Microsoft.AspNetCore.SpaServices v2.1.0
Package:
Microsoft.AspNetCore.SpaServices v2.2.0
Package:
Microsoft.AspNetCore.SpaServices v3.0.3
Package:
Microsoft.AspNetCore.SpaServices v3.1.18
Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Caution

Use Microsoft.AspNetCore.SpaServices.Extensions

Extension methods useful for configuring routing in a single-page application (SPA).

public ref class SpaRouteExtensions abstract sealed
public static class SpaRouteExtensions
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public static class SpaRouteExtensions
type SpaRouteExtensions = class
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
type SpaRouteExtensions = class
Public Module SpaRouteExtensions
Inheritance
SpaRouteExtensions
Attributes

Methods

Name Description
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).

Applies to


Feedback

Was this page helpful?