mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Lowercase routes
This commit is contained in:
parent
2e74a6ff05
commit
385cc4304c
7 changed files with 150 additions and 4 deletions
|
@ -6,6 +6,7 @@ using System.Threading;
|
|||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
using LowercaseRoutesMVC;
|
||||
using NLog.Config;
|
||||
using Ninject;
|
||||
using Ninject.Web.Mvc;
|
||||
|
@ -26,7 +27,7 @@ namespace NzbDrone.Web
|
|||
routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });
|
||||
|
||||
|
||||
routes.MapRoute(
|
||||
routes.MapRouteLowercase(
|
||||
"Default", // Route name
|
||||
"{controller}/{action}/{id}", // URL with parameters
|
||||
new { controller = "Series", action = "Index", id = UrlParameter.Optional } // Parameter defaults
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue