using System.Web.Mvc; using System.Web.Routing; namespace Learun.Application.Web { /// /// 版 本 PIT-ADMS V7.0.3 敏捷开发框架 /// Copyright (c) 2013-2018 Hexagon PPM /// 创建人:-框架开发组 /// 日 期:2017.03.08 /// 描 述:数据库类型枚举 /// public class RouteConfig { /// /// 注册路由 /// /// 路由控制器 public static void RegisterRoutes(RouteCollection routes) { //routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); //routes.IgnoreRoute("WebService1.asmx/{*pathInfo}"); //routes.IgnoreRoute("ActiveReports.ReportService.asmx/{*pathInfo}"); //routes.IgnoreRoute("{*allActiveReport}", new { allActiveReport = @".*\.ar13(/.*)?" }); //routes.MapRoute( // name: "Default", // url: "{controller}/{action}/{id}", // defaults: new { controller = "Login", action = "Index", id = UrlParameter.Optional } //); routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Login", action = "Index", id = UrlParameter.Optional } ); } } }