forked from sharonikechi/babaomo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RouteConfig.cs
28 lines (25 loc) · 875 Bytes
/
RouteConfig.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace BabaOmo.Web
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapPageRoute("app-info", "info", "~/index.html");
routes.MapPageRoute("app-child", "child", "~/index.html");
routes.MapPageRoute("app-father", "father", "~/index.html");
routes.MapPageRoute("app-result", "result", "~/index.html");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { action = "Index", id = UrlParameter.Optional }
);
}
}
}