Class FrontEndRoutes
Creates routes for surface controllers
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Website.Routing
Assembly: Umbraco.Web.Website.dll
Syntax
public sealed class FrontEndRoutes : IAreaRoutes
Constructors
View SourceFrontEndRoutes(IOptions<GlobalSettings>, IHostingEnvironment, IRuntimeState, SurfaceControllerTypeCollection, UmbracoApiControllerTypeCollection)
Initializes a new instance of the FrontEndRoutes class.
Declaration
public FrontEndRoutes(IOptions<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment, IRuntimeState runtimeState, SurfaceControllerTypeCollection surfaceControllerTypeCollection, UmbracoApiControllerTypeCollection apiControllers)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<GlobalSettings> | globalSettings | |
IHostingEnvironment | hostingEnvironment | |
IRuntimeState | runtimeState | |
SurfaceControllerTypeCollection | surfaceControllerTypeCollection | |
UmbracoApiControllerTypeCollection | apiControllers |
Methods
View SourceCreateRoutes(IEndpointRouteBuilder)
Create routes for an area
Declaration
public void CreateRoutes(IEndpointRouteBuilder endpoints)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Routing.IEndpointRouteBuilder | endpoints | The endpoint route builder |