Light12306/ChatRoomServer.Www/App_Start/RouteConfig.cs

24 lines
499 B
C#
Raw Normal View History

2015-07-03 21:04:37 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace ChatRoomServer.Www
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
2015-07-10 21:32:52 +08:00
defaults: new { controller = "Index", action = "Index", id = UrlParameter.Optional }
2015-07-03 21:04:37 +08:00
);
}
}
}