public override void RegisterCustomRoutes(WebModuleRegistrationContext context, ContainerBuilder containerBuilder)
{
context.MapRoute(
"bcms_" + AreaName + "_MainJs",
string.Format(RootModuleConstants.AutoGeneratedJsFilePathPattern, "bcms.main.js").TrimStart('/'),
new
{
area = AreaName,
controller = "Rendering",
action = "RenderMainJsFile"
},
new[] { typeof(RenderingController).Namespace });
context.MapRoute(
"bcms_" + AreaName + "_ProcessorJs",
string.Format(RootModuleConstants.AutoGeneratedJsFilePathPattern, "bcms.processor.js").TrimStart('/'),
new
{
area = AreaName,
controller = "Rendering",
action = "RenderProcessorJsFile"
},
new[] { typeof(RenderingController).Namespace });
context.MapRoute(
"bcms_" + AreaName + "_PreviewPage",
"bcms/preview/{pageId}/{pageContentId}",
new
{
area = AreaName,
controller = "Preview",
action = "Index"
},
new[] { typeof(PreviewController).Namespace });
CreateEmbeddedResourcesRoutes(context);
// All CMS Pages:
context.MapRoute("bcms_" + AreaName + "_AllPages",
"{*data}",
new
{
area = AreaName,
controller = "Cms",
action = "Index"
},
new[] { typeof(CmsController).Namespace });
}