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:
Nathan Heskew
2010-03-01 08:01:56 -08:00
parent daae401ac4
commit 5f164f0978
2 changed files with 1 additions and 7 deletions

View File

@@ -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() {

View File

@@ -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),