This repository has been archived by the owner on Aug 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathGlobal.asax.cs
60 lines (45 loc) · 2.27 KB
/
Global.asax.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Web;
using System.Web.Routing;
namespace Mygod.Skylark
{
public class Global : HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
RouteTable.Routes.MapPageRoute("Admin", "Admin/{*Path}", "~/Admin.aspx", false);
RouteTable.Routes.MapPageRoute("Browse", "Browse/{*Path}", "~/Browse.aspx", false);
RouteTable.Routes.MapPageRoute("Download", "Download/{*Path}", "~/Download.aspx", false);
RouteTable.Routes.MapPageRoute("Edit", "Edit/{*Path}", "~/Edit.aspx", false);
RouteTable.Routes.MapPageRoute("OfflineNew", "Offline/New/{*Path}", "~/Offline/New.aspx", false);
RouteTable.Routes.MapPageRoute("OfflineNiGuan", "Offline/NiGuan/{*Path}", "~/Offline/YouTube.aspx", false);
RouteTable.Routes.MapPageRoute("OfflineStart", "Offline/Start/{*Path}", "~/Offline/Start.aspx", false);
RouteTable.Routes.MapPageRoute("Upload", "Upload/{*Path}", "~/Upload.aspx", false);
RouteTable.Routes.MapPageRoute("View", "View/{*Path}", "~/View.aspx", false);
RouteTable.Routes.MapPageRoute("Api", "Api/{Action}/{*Path}", "~/Api.aspx", false);
RouteTable.Routes.MapPageRoute("TaskCreate", "Task/Create/{Type}/{*Path}", "~/Task/Create.aspx", false);
RouteTable.Routes.MapPageRoute("TaskDetails", "Task/Details/{ID}", "~/Task/Details.aspx", false);
RouteTable.Routes.MapPageRoute("TaskLog", "Task/Log/", "~/Task/Log.aspx", false);
RouteTable.Routes.MapPageRoute("TasksQuery", "Task/Query", "~/Task/Query.aspx", false);
RouteTable.Routes.MapPageRoute("TaskQuery", "Task/Query/{ID}", "~/Task/Query.aspx", false);
}
/*protected void Session_Start(object sender, EventArgs e)
{
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
}
protected void Application_Error(object sender, EventArgs e)
{
}
protected void Session_End(object sender, EventArgs e)
{
}
protected void Application_End(object sender, EventArgs e)
{
}*/
}
}