Interface IContentEndpointRouteBuilder
An endpoint builder used to extend content routing
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNetCore.Routing.dll
Version: 12.0.3Syntax
public interface IContentEndpointRouteBuilder
Methods
MapTemplate<TTempalteType>(String)
Registers a custom pattern for action/parameters for a template. Like for example 'skip:int/take:int?'
Declaration
IContentEndpointRouteBuilder MapTemplate<TTempalteType>(string pattern)
Parameters
Type | Name | Description |
---|---|---|
System.String | pattern | The pattern to register for the template |
Returns
Type | Description |
---|---|
IContentEndpointRouteBuilder | The content endpoint route builder |
Type Parameters
Name | Description |
---|---|
TTempalteType | The template type, e.g. a Controller or a RazorPage that has custom actions/parameters |