Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Global.asax.cs @ 12388

Last change on this file since 12388 was 5910, checked in by cfleisch, 14 years ago

#1439 Query tool as plugin implemented, added submenu items

File size: 957 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Web;
5using System.Web.Mvc;
6using System.Web.Routing;
7
8namespace 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.