42 lines
1.4 KiB
C#
Raw Permalink Normal View History

2025-08-13 11:14:39 +08:00
using System.Web.Mvc;
using System.Web.Routing;
namespace Learun.Application.Web
{
/// <summary>
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
/// Copyright (c) 2013-2018 Hexagon PPM
/// 创建人:-框架开发组
/// 日 期2017.03.08
/// 描 述:数据库类型枚举
/// </summary>
public class RouteConfig
{
/// <summary>
/// 注册路由
/// </summary>
/// <param name="routes">路由控制器</param>
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 }
);
}
}
}