Table of Contents

Class ControllerEndpointExtensions

Namespace
Sitecore.AspNetCore.SDK.RenderingEngine.Extensions
Assembly
Sitecore.AspNetCore.SDK.RenderingEngine.dll

Contains extension methods for using Controllers with IEndpointRouteBuilder.

public static class ControllerEndpointExtensions
Inheritance
ControllerEndpointExtensions
Inherited Members

Methods

MapSitecoreLocalizedRoute(IEndpointRouteBuilder, string, string, string)

Add default endpoint which supports language embedded prefixes. Like Http://localhost/da-DK/home.

public static IEndpointConventionBuilder MapSitecoreLocalizedRoute(this IEndpointRouteBuilder endpoints, string routeName, string action, string controller)

Parameters

endpoints IEndpointRouteBuilder

IEndpointRouteBuilder parameter.

routeName string

Name of the route.

action string

Default action.

controller string

Default controller.

Returns

IEndpointConventionBuilder

A ControllerActionEndpointConventionBuilder for endpoints associated with controller actions for this route.