Last change
on this file since 6171 was
5910,
checked in by cfleisch, 14 years ago
|
#1439 Query tool as plugin implemented, added submenu items
|
File size:
957 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Web;
|
---|
5 | using System.Web.Mvc;
|
---|
6 | using System.Web.Routing;
|
---|
7 |
|
---|
8 | namespace HLWebServiceTestPlugin {
|
---|
9 | // Note: For instructions on enabling IIS6 or IIS7 classic mode,
|
---|
10 | // visit http://go.microsoft.com/?LinkId=9394801
|
---|
11 |
|
---|
12 | public class MvcApplication : System.Web.HttpApplication {
|
---|
13 | public static void RegisterRoutes(RouteCollection routes) {
|
---|
14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
---|
15 |
|
---|
16 | routes.MapRoute(
|
---|
17 | "Default", // Route name
|
---|
18 | "{controller}/{action}/{id}", // URL with parameters
|
---|
19 | new { controller = "Query", action = "Index", id = UrlParameter.Optional } // Parameter defaults
|
---|
20 | );
|
---|
21 |
|
---|
22 | }
|
---|
23 |
|
---|
24 | protected void Application_Start() {
|
---|
25 | AreaRegistration.RegisterAllAreas();
|
---|
26 |
|
---|
27 | RegisterRoutes(RouteTable.Routes);
|
---|
28 | }
|
---|
29 | }
|
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.