Promact/slack-erp-custom-integration-mvc

View on GitHub
Slack.Automation/Promact.Erp.Web/App_Start/RouteConfig.cs

Summary

Maintainability
A
0 mins
Test Coverage
using System.Web.Mvc;
using System.Web.Routing;

namespace Promact.Erp.Web
{
    public static class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
         
            routes.MapRoute(
             "Default",
             "{controller}/{action}/{id}",
              defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );

            routes.MapRoute(
            name: "AcceptAll",
            url: "{*url}",
            defaults: new { controller = "Home", action = "Index" }

        );
        }
    }
}