2016-10-20 17:55:29 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Web;
|
2016-11-01 08:10:59 +08:00
|
|
|
|
using System.Web.Http;
|
2016-10-20 17:55:29 +08:00
|
|
|
|
using System.Web.Mvc;
|
|
|
|
|
using System.Web.Routing;
|
|
|
|
|
|
|
|
|
|
namespace Bootstrap.Admin
|
|
|
|
|
{
|
|
|
|
|
public class Global : HttpApplication
|
|
|
|
|
{
|
|
|
|
|
void Application_Start(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
// Code that runs on application startup
|
|
|
|
|
AreaRegistration.RegisterAllAreas();
|
|
|
|
|
GlobalConfiguration.Configure(WebApiConfig.Register);
|
2016-10-21 16:35:26 +08:00
|
|
|
|
RouteConfig.RegisterRoutes(RouteTable.Routes);
|
|
|
|
|
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
|
2016-10-20 17:55:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|