migrate to new git
This commit is contained in:
36
web/App_Code/RouteConfig.cs
Normal file
36
web/App_Code/RouteConfig.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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" }
|
||||
//);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user