mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
29 lines
725 B
C#
29 lines
725 B
C#
using System.Web.Mvc;
|
|
|
|
namespace BuildFeed.Areas.admin
|
|
{
|
|
public class AdminAreaRegistration : AreaRegistration
|
|
{
|
|
public override string AreaName => "admin";
|
|
|
|
public override void RegisterArea(AreaRegistrationContext context)
|
|
{
|
|
context.MapRoute("Meta",
|
|
"admin/{controller}/{action}/{type}/{value}",
|
|
new
|
|
{
|
|
action = "index",
|
|
controller = "meta"
|
|
});
|
|
|
|
context.MapRoute("Admin (Default)",
|
|
"admin/{controller}/{action}/{id}",
|
|
new
|
|
{
|
|
action = "index",
|
|
controller = "base",
|
|
id = UrlParameter.Optional
|
|
});
|
|
}
|
|
}
|
|
} |