using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;
using Everest.Library.Mvc;
using System.Web.Mvc;
namespace Everest.CmsServices.HttpModule{
public class InstallHttpModule : XmlRoutesModule
{
protected override void RegisterRoutes(RouteCollection routeCollection)
{
routeCollection.Clear();
routeCollection.IgnoreRoute("{*cssimages}", new { cssimages = @".*\\.(css|png|jpg|js|gif|jpeg|swf|flv)(/.*)?" });
routeCollection.MapRoute(
"Default", // Route name
"{ignoreController}/{ignoreAction}/{id}", // URL with parameters
new { controller = "Install", ignoreController = "", ignoreAction = "", action = "Index", id = "" } // Parameter defaults
);
}
}
}
|