SaaS CMS has officially launched! Learn more now.

Class ContentEndpointRouteBuilderExtensions

Extends Microsoft.AspNetCore.Routing.IEndpointRouteBuilder with extension methods for registering content routes

Inheritance
System.Object
ContentEndpointRouteBuilderExtensions
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNetCore.Routing.dll
Version: 12.0.3
Syntax
public static class ContentEndpointRouteBuilderExtensions : Object

Methods

MapContent(IEndpointRouteBuilder)

Map Endpoints for Content routes.

Declaration
public static IContentEndpointRouteBuilder MapContent(this IEndpointRouteBuilder defaultEndpointRouteBuilder)
Parameters
Type Name Description
Microsoft.AspNetCore.Routing.IEndpointRouteBuilder defaultEndpointRouteBuilder

The endpoint builder

Returns
Type Description
IContentEndpointRouteBuilder
Remarks

Recommendation is to do additional endpoint registration either before or after this method is called, not both before and after. Reason for that is that can cause endpoints to be duplicate registered.