Skip to content

Instantly share code, notes, and snippets.

@trnktms

trnktms/RegisterRoutes.cs

Last active Apr 6, 2017
Embed
What would you like to do?
using Sitecore.Pipelines;
using System.Web.Mvc;
using System.Web.Routing;
namespace MyProject.Pipelines
{
public class RegisterRoutes
{
public void Process(PipelineArgs args)
{
RouteTable.Routes.MapRoute("SimpleField", "myFields/SimpleField/Render", new { controller = "SimpleField", action = "Render" });
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment