19 lines
483 B
C#
19 lines
483 B
C#
using System.Web.Mvc;
|
|
using System.Web.Routing;
|
|
|
|
namespace OnlineEditorsExampleMVC
|
|
{
|
|
public class RouteConfig
|
|
{
|
|
public static void RegisterRoutes(RouteCollection routes)
|
|
{
|
|
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
|
|
|
routes.MapRoute(
|
|
name: "Default",
|
|
url: "{action}",
|
|
defaults: new { controller = "Home", action = "Index" }
|
|
);
|
|
}
|
|
}
|
|
} |