mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
Pulling default route and extra assembly concat (from MvcModule)
- Both no longer necessary since the default HomeController was removed --HG-- branch : dev
This commit is contained in:
@@ -16,12 +16,6 @@ namespace Orchard.Web {
|
||||
|
||||
public static void RegisterRoutes(RouteCollection routes) {
|
||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
||||
|
||||
routes.MapRoute(
|
||||
"Default", // Route name
|
||||
"{controller}/{action}/{id}", // URL with parameters
|
||||
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
|
||||
);
|
||||
}
|
||||
|
||||
protected void Application_Start() {
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Orchard.Mvc {
|
||||
|
||||
protected override void Load(ContainerBuilder moduleBuilder) {
|
||||
var extensions = _extensionManager.ActiveExtensions();
|
||||
var assemblies = extensions.Select(x => x.Assembly).Concat(new[] { typeof(MvcModule).Assembly });
|
||||
var assemblies = extensions.Select(x => x.Assembly);
|
||||
|
||||
var module = new AutofacControllerModule(assemblies.ToArray()) {
|
||||
ActionInvokerType = typeof(FilterResolvingActionInvoker),
|
||||
|
||||
Reference in New Issue
Block a user