Lowercase routes

pull/4/head
Mark McDowall 12 years ago
parent 2e74a6ff05
commit 385cc4304c

@ -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

@ -63,6 +63,9 @@
<Reference Include="EntityFramework, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<HintPath>..\packages\EntityFramework.4.3.0\lib\net40\EntityFramework.dll</HintPath>
</Reference>
<Reference Include="LowercaseRoutesMVC">
<HintPath>..\packages\LowercaseRoutesMVC.1.0.3\lib\LowercaseRoutesMVC.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private>
@ -474,9 +477,6 @@
<ItemGroup>
<Content Include="Views\Update\ViewLog.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Settings\Index.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Shared\_ReferenceLayout.cshtml" />
</ItemGroup>

@ -16,6 +16,7 @@
<package id="jQuery.Validation" version="1.9" />
<package id="jQuery.Validation.Unobtrusive" version="2.0.20126.16343" />
<package id="jQuery.vsdoc" version="1.6" />
<package id="LowercaseRoutesMVC" version="1.0.3" targetFramework="net40" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" />
<package id="MiniProfiler" version="2.0.2" />
<package id="MiniProfiler.MVC3" version="2.0.2" />

@ -0,0 +1,144 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>LowercaseRoutesMVC</name>
</assembly>
<members>
<member name="T:LowercaseRoutesMVC.RouteCollectionExtensions">
<summary>
Contains extension methods to map routes to lowercase URLs.
</summary>
</member>
<member name="M:LowercaseRoutesMVC.RouteCollectionExtensions.MapRouteLowercase(System.Web.Routing.RouteCollection,System.String,System.String)">
<summary>
Maps the specified URL route using a lowercase URL. Does not change casing in the querystring, if any.
</summary>
<param name="routes">A collection of routes for the application.</param>
<param name="name">The name of the route to map.</param>
<param name="url">The URL pattern for the route.</param>
<returns>A reference to the mapped route.</returns>
</member>
<member name="M:LowercaseRoutesMVC.RouteCollectionExtensions.MapRouteLowercase(System.Web.Routing.RouteCollection,System.String,System.String,System.Object)">
<summary>
Maps the specified URL route using a lowercase URL and sets default route values. Does not change casing in the querystring, if any.
</summary>
<param name="routes">A collection of routes for the application.</param>
<param name="name">The name of the route to map.</param>
<param name="url">The URL pattern for the route.</param>
<param name="defaults">An object that contains default route values.</param>
<returns>A reference to the mapped route.</returns>
</member>
<member name="M:LowercaseRoutesMVC.RouteCollectionExtensions.MapRouteLowercase(System.Web.Routing.RouteCollection,System.String,System.String,System.String[])">
<summary>
Maps the specified URL route using a lowercase URL and sets the namespaces. Does not change casing in the querystring, if any.
</summary>
<param name="routes">A collection of routes for the application.</param>
<param name="name">The name of the route to map.</param>
<param name="url">The URL pattern for the route.</param>
<param name="namespaces">A set of namespaces for the application.</param>
<returns>A reference to the mapped route.</returns>
</member>
<member name="M:LowercaseRoutesMVC.RouteCollectionExtensions.MapRouteLowercase(System.Web.Routing.RouteCollection,System.String,System.String,System.Object,System.Object)">
<summary>
Maps the specified URL route using a lowercase URL and sets default route values and constraints. Does not change casing in the querystring, if any.
</summary>
<param name="routes">A collection of routes for the application.</param>
<param name="name">The name of the route to map.</param>
<param name="url">The URL pattern for the route.</param>
<param name="defaults">An object that contains default route values.</param>
<param name="constraints">A set of expressions that specify valid values for a URL parameter.</param>
<returns>A reference to the mapped route.</returns>
</member>
<member name="M:LowercaseRoutesMVC.RouteCollectionExtensions.MapRouteLowercase(System.Web.Routing.RouteCollection,System.String,System.String,System.Object,System.String[])">
<summary>
Maps the specified URL route using a lowercase URL and sets default route values and namespaces. Does not change casing in the querystring, if any.
</summary>
<param name="routes">A collection of routes for the application.</param>
<param name="name">The name of the route to map.</param>
<param name="url">The URL pattern for the route.</param>
<param name="defaults">An object that contains default route values.</param>
<param name="namespaces">A set of namespaces for the application.</param>
<returns>A reference to the mapped route.</returns>
</member>
<member name="M:LowercaseRoutesMVC.RouteCollectionExtensions.MapRouteLowercase(System.Web.Routing.RouteCollection,System.String,System.String,System.Object,System.Object,System.String[])">
<summary>
Maps the specified URL route and sets default route values, constraints, and namespaces. Does not change casing in the querystring, if any.
</summary>
<param name="routes">A collection of routes for the application.</param>
<param name="name">The name of the route to map.</param>
<param name="url">The URL pattern for the route.</param>
<param name="defaults">An object that contains default route values.</param>
<param name="constraints">A set of expressions that specify valid values for a URL parameter.</param>
<param name="namespaces">A set of namespaces for the application.</param>
<returns>A reference to the mapped route.</returns>
</member>
<member name="T:LowercaseRoutesMVC.AreaRegistrationContextExtensions">
<summary>
Contains extension methods to map routes in Areas to lowercase URLs.
</summary>
</member>
<member name="M:LowercaseRoutesMVC.AreaRegistrationContextExtensions.MapRouteLowercase(System.Web.Mvc.AreaRegistrationContext,System.String,System.String)">
<summary>
Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property. Does not change casing in the querystring, if any.
</summary>
<param name="context">The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application.</param>
<param name="name">The name of the route.</param>
<param name="url">The URL pattern for the route.</param>
<returns>A reference to the mapped route.</returns>
</member>
<member name="M:LowercaseRoutesMVC.AreaRegistrationContextExtensions.MapRouteLowercase(System.Web.Mvc.AreaRegistrationContext,System.String,System.String,System.Object)">
<summary>
Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property, using the specified route default values. Does not change casing in the querystring, if any.
</summary>
<param name="context">The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application.</param>
<param name="name">The name of the route.</param>
<param name="url">The URL pattern for the route.</param>
<param name="defaults">An object that contains default route values.</param>
<returns>A reference to the mapped route.</returns>
</member>
<member name="M:LowercaseRoutesMVC.AreaRegistrationContextExtensions.MapRouteLowercase(System.Web.Mvc.AreaRegistrationContext,System.String,System.String,System.String[])">
<summary>
Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property, using the specified namespaces. Does not change casing in the querystring, if any.
</summary>
<param name="context">The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application.</param>
<param name="name">The name of the route.</param>
<param name="url">The URL pattern for the route.</param>
<param name="namespaces">A set of namespaces for the application.</param>
<returns>A reference to the mapped route.</returns>
</member>
<member name="M:LowercaseRoutesMVC.AreaRegistrationContextExtensions.MapRouteLowercase(System.Web.Mvc.AreaRegistrationContext,System.String,System.String,System.Object,System.Object)">
<summary>
Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property, using the specified route default values and constraints. Does not change casing in the querystring, if any.
</summary>
<param name="context">The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application.</param>
<param name="name">The name of the route.</param>
<param name="url">The URL pattern for the route.</param>
<param name="defaults">An object that contains default route values.</param>
<param name="constraints">A set of expressions that specify valid values for a URL parameter.</param>
<returns>A reference to the mapped route.</returns>
</member>
<member name="M:LowercaseRoutesMVC.AreaRegistrationContextExtensions.MapRouteLowercase(System.Web.Mvc.AreaRegistrationContext,System.String,System.String,System.Object,System.String[])">
<summary>
Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property, using the specified route default values and namespaces. Does not change casing in the querystring, if any.
</summary>
<param name="context">The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application.</param>
<param name="name">The name of the route.</param>
<param name="url">The URL pattern for the route.</param>
<param name="defaults">An object that contains default route values.</param>
<param name="namespaces">A set of namespaces for the application.</param>
<returns>A reference to the mapped route.</returns>
</member>
<member name="M:LowercaseRoutesMVC.AreaRegistrationContextExtensions.MapRouteLowercase(System.Web.Mvc.AreaRegistrationContext,System.String,System.String,System.Object,System.Object,System.String[])">
<summary>
Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property, using the specified route default values, constraints, and namespaces. Does not change casing in the querystring, if any.
</summary>
<param name="context">The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application.</param>
<param name="name">The name of the route.</param>
<param name="url">The URL pattern for the route.</param>
<param name="defaults">An object that contains default route values.</param>
<param name="constraints">A set of expressions that specify valid values for a URL parameter.</param>
<param name="namespaces">A set of namespaces for the application.</param>
<returns>A reference to the mapped route.</returns>
</member>
</members>
</doc>
Loading…
Cancel
Save