file upload
This commit is contained in:
29
api/Global.asax.cs
Normal file
29
api/Global.asax.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Optimization;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.SessionState;
|
||||
using System.Web.Http;
|
||||
|
||||
|
||||
namespace api
|
||||
{
|
||||
public class Global : HttpApplication
|
||||
{
|
||||
void Application_Start(object sender, EventArgs e)
|
||||
{
|
||||
// 應用程式啟動時執行的程式碼
|
||||
//GlobalConfiguration.Configure(WebApiConfig.Register);
|
||||
//RouteConfig.RegisterRoutes(RouteTable.Routes);
|
||||
//BundleConfig.RegisterBundles(BundleTable.Bundles);
|
||||
RouteTable.Routes.MapHttpRoute(
|
||||
name: "DefaultApi",
|
||||
routeTemplate: "api/{controller}/{id}",
|
||||
defaults: new { id = System.Web.Http.RouteParameter.Optional }
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user