Rev | Line | |
---|
[4985] | 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 {
|
---|
[6317] | 9 | // Note: For instructions on enabling IIS6 or IIS7 classic mode,
|
---|
| 10 | // visit http://go.microsoft.com/?LinkId=9394801
|
---|
[4985] | 11 |
|
---|
[6317] | 12 | public class MvcApplication : System.Web.HttpApplication {
|
---|
| 13 | public static void RegisterRoutes(RouteCollection routes) {
|
---|
| 14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
---|
[4985] | 15 |
|
---|
[6317] | 16 | routes.MapRoute(
|
---|
| 17 | "Default", // Route name
|
---|
| 18 | "{controller}/{action}/{id}", // URL with parameters
|
---|
| 19 | new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
|
---|
| 20 | );
|
---|
[4985] | 21 |
|
---|
[6317] | 22 | }
|
---|
[4985] | 23 |
|
---|
[6317] | 24 | protected void Application_Start() {
|
---|
| 25 | AreaRegistration.RegisterAllAreas();
|
---|
[4985] | 26 |
|
---|
[6317] | 27 | RegisterRoutes(RouteTable.Routes);
|
---|
[4985] | 28 | }
|
---|
[6317] | 29 | }
|
---|
[4985] | 30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.