You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
895 B
30 lines
895 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using System.Web.Routing;
|
|
|
|
namespace DefenseWeb
|
|
{
|
|
public class RouteConfig
|
|
{
|
|
public static void RegisterRoutes(RouteCollection routes)
|
|
{
|
|
routes.IgnoreRoute("{directory}/{resource}.asmx/{*pathInfo}");
|
|
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
|
|
|
routes.MapRoute(
|
|
name: "Default",
|
|
url: "{controller}/{action}/{para1}/{para2}/{para3}/{para4}",
|
|
defaults: new { controller = "Login",
|
|
action = "Index",
|
|
para1 = UrlParameter.Optional,
|
|
para2 = UrlParameter.Optional,
|
|
para3 = UrlParameter.Optional,
|
|
para4 = UrlParameter.Optional
|
|
}
|
|
);
|
|
}
|
|
}
|
|
}
|