Created
March 30, 2016 14:02
-
-
Save dnstommy/26f53a253ee039620a4b8b259a76b5f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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