You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
979 B

10 months ago
  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. namespace NFine.Web
  8. {
  9. public class RouteConfig
  10. {
  11. public static void RegisterRoutes(RouteCollection routes)
  12. {
  13. routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  14. //var route=routes.MapRoute(
  15. // name: "Default",
  16. // url: "{controller}/{action}/{id}",
  17. // defaults: new { controller = "WatchPanel", action = "PanelWIPDetail", id = UrlParameter.Optional },
  18. // namespaces: new[] { "NFine.Web.Areas.SRM.Controllers" }
  19. // );
  20. // route.DataTokens["area"] = "SRM";
  21. routes.MapRoute(
  22. name: "Default",
  23. url: "{controller}/{action}/{id}",
  24. defaults: new { controller = "Login", action = "Index", id = UrlParameter.Optional }
  25. );
  26. }
  27. }
  28. }