Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Web.Mvc;
- using System.Web.Routing;
- using Umbraco.Core;
- using Umbraco.Web;
- namespace UmbracoTest
- {
- public class CustomUmbracoApplication : UmbracoApplication
- {
- protected override IBootManager GetBootManager()
- {
- return new CustomWebBootManager(this);
- }
- }
- public class CustomWebBootManager : WebBootManager
- {
- public CustomWebBootManager(UmbracoApplicationBase umbracoApplication) : base(umbracoApplication)
- {}
- public override IBootManager Complete(Action<ApplicationContext> afterComplete)
- {
- RouteTable.Routes.MapRoute(
- "HomePage",
- "home/index",
- new {controller = "Home", action = "Test"}
- );
- return base.Complete(afterComplete);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement