This commit is contained in:
2016-08-08 14:47:35 -04:00
commit 0b0cb7c73a
156 changed files with 114318 additions and 0 deletions
@@ -0,0 +1,25 @@
using System.Web.Mvc;
using System.Web.Routing;
namespace InventoryTraker.Web
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Templates",
url: "{feature}/Template/{name}",
defaults: new {controller = "Template", action = "Render"}
);
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Inventory", action = "Index", id = UrlParameter.Optional }
);
}
}
}