Skip to content

Instantly share code, notes, and snippets.

@sebastiantecsi
Last active March 20, 2018 09:01
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 sebastiantecsi/618b6ac2c9f0b3e4f4fb5fd8a77a1418 to your computer and use it in GitHub Desktop.
Save sebastiantecsi/618b6ac2c9f0b3e4f4fb5fd8a77a1418 to your computer and use it in GitHub Desktop.
namespace Sitecore.Feature.Demo.Pipelines
{
using System.Web.Mvc;
using System.Web.Routing;
using Sitecore.Pipelines;
public class RegisterWebApiRoutes
{
public void Process(PipelineArgs args)
{
RouteTable.Routes.MapRoute("Feature.Demo.Api", "api/demo/{action}", new
{
controller = "Demo"
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment