2014-10-11 06:57:02 +08:00
|
|
|
|
using System.Web.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace BuildFeed.Areas.admin
|
|
|
|
|
{
|
|
|
|
|
public class adminAreaRegistration : AreaRegistration
|
|
|
|
|
{
|
|
|
|
|
public override string AreaName
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return "admin";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void RegisterArea(AreaRegistrationContext context)
|
|
|
|
|
{
|
2015-01-30 05:44:54 +08:00
|
|
|
|
context.MapRoute(
|
|
|
|
|
"Meta",
|
|
|
|
|
"admin/{controller}/{action}/{type}/{value}",
|
|
|
|
|
new { action = "index", controller = "meta" }
|
|
|
|
|
);
|
|
|
|
|
|
2014-10-11 06:57:02 +08:00
|
|
|
|
context.MapRoute(
|
2014-11-01 03:28:16 +08:00
|
|
|
|
"Admin (Default)",
|
2014-10-11 06:57:02 +08:00
|
|
|
|
"admin/{controller}/{action}/{id}",
|
2014-11-01 03:28:16 +08:00
|
|
|
|
new { action = "index", controller = "base", id = UrlParameter.Optional }
|
2014-10-11 06:57:02 +08:00
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|