初始化
This commit is contained in:
24
Face.Web/Areas/App/AppAreaRegistration.cs
Normal file
24
Face.Web/Areas/App/AppAreaRegistration.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Face.Web.Areas.App
|
||||
{
|
||||
public class AppAreaRegistration : AreaRegistration
|
||||
{
|
||||
public override string AreaName
|
||||
{
|
||||
get
|
||||
{
|
||||
return "App";
|
||||
}
|
||||
}
|
||||
|
||||
public override void RegisterArea(AreaRegistrationContext context)
|
||||
{
|
||||
context.MapRoute(
|
||||
"App_default",
|
||||
"App/{controller}/{action}/{id}",
|
||||
new { action = "Index", id = UrlParameter.Optional }
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user