Skip to content

Instantly share code, notes, and snippets.

@dnstommy
Created March 30, 2016 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnstommy/26f53a253ee039620a4b8b259a76b5f0 to your computer and use it in GitHub Desktop.
Save dnstommy/26f53a253ee039620a4b8b259a76b5f0 to your computer and use it in GitHub Desktop.
using System.Web.Mvc;
using System.Web.Routing;
using Sitecore.Pipelines;
namespace Bonfire.Kickfire.Analytics.Pipelines.Initialize
{
public class InitRoutes : Sitecore.Mvc.Pipelines.Loader.InitializeRoutes
{
public override void Process(PipelineArgs args)
{
RouteTable.Routes.MapRoute(
"Profile", // Route name
"VisitorData", // URL with parameters
new {controller = "Visitor", action = "VisitorDetailsJSON"},
new[] {"Bonfire.Kickfire.Analytics.Controllers"});
RouteTable.Routes.MapRoute(
"CloseProfileSession", // Route name
"CloseProfileSession", // URL with parameters
new { controller = "Visitor", action = "ClearVisitorSession" },
new[] { "Bonfire.Kickfire.Analytics.Controllers" });
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment