Files
17168ERP/web/App_Code/RouteConfig.cs
2025-08-29 01:27:25 +08:00

37 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web;
//using System.Web.Mvc;
using System.Web.Routing;
public class RouteConfig
{
/*
* # Resolve Home for each Area
* http://stackoverflow.com/questions/7842293/multiple-types-were-found-that-match-the-controller-named-home
*
* # Home Controller for Area admin
* http://stackoverflow.com/questions/17220106/mvc4-default-route-when-using-areas
* */
public static void RegisterRoutes(RouteCollection routes)
{
//routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
//routes.MapRoute(
// name: "thumb",
// url: "thumb/{*url}",
// defaults: new { controller = "thumb", action = "Index", id = UrlParameter.Optional },
// namespaces: new[] { "GayoWeb.Controllers" }
//);
//routes.MapRoute(
// name: "Default",
// url: "{controller}/{action}/{id}",
// defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
// namespaces: new[] { "GayoWeb.Controllers" }
//);
}
}