You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 regels
1.1 KiB

  1. using System.Web.Mvc;
  2. using System.Web.Routing;
  3. namespace Learun.Application.Web
  4. {
  5. /// <summary>
  6. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  7. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  8. /// 创建人:陈彬彬
  9. /// 日 期:2017.03.08
  10. /// 描 述:数据库类型枚举
  11. /// </summary>
  12. public class RouteConfig
  13. {
  14. /// <summary>
  15. /// 注册路由
  16. /// </summary>
  17. /// <param name="routes">路由控制器</param>
  18. public static void RegisterRoutes(RouteCollection routes)
  19. {
  20. routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  21. routes.IgnoreRoute("WebService1.asmx/{*pathInfo}");
  22. routes.IgnoreRoute("ActiveReports.ReportService.asmx/{*pathInfo}");
  23. routes.IgnoreRoute("{*allActiveReport}", new { allActiveReport = @".*\.ar13(/.*)?" });
  24. routes.MapRoute(
  25. name: "Default",
  26. url: "{controller}/{action}/{id}",
  27. defaults: new { controller = "Login", action = "Index", id = UrlParameter.Optional }
  28. );
  29. }
  30. }
  31. }