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
IEndpointRouteBuilderIEndpointRouteBuilder parameter.
routeName
stringName of the route.
action
stringDefault action.
controller
stringDefault controller.
Returns
- IEndpointConventionBuilder
A ControllerActionEndpointConventionBuilder for endpoints associated with controller actions for this route.