The Free Software Media System - Server Backend & API
update aliases
Luke Pulverentida3d8894a857
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.csindex a9ce513247..482bd9a324 100644--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs@@ -710,12 +710,19 @@ namespace Emby.Server.Implementations.HttpServerSummary = route.Summary});- routes.Add(new RouteAttribute(DoubleNormalizeEmbyRoutePath(route.Path), route.Verbs)+ routes.Add(new RouteAttribute(NormalizeMediaBrowserRoutePath(route.Path), route.Verbs){Notes = route.Notes,Priority = route.Priority,Summary = route.Summary});++ //routes.Add(new RouteAttribute(DoubleNormalizeEmbyRoutePath(route.Path), route.Verbs)+ //{+ // Notes = route.Notes,+ // Priority = route.Priority,+ // Summary = route.Summary+ //});}return routes.ToArray(routes.Count);@@ -756,6 +763,16 @@ namespace Emby.Server.Implementations.HttpServerreturn "emby/" + path;}+ private string NormalizeMediaBrowserRoutePath(string path)+ {+ if (path.StartsWith("/", StringComparison.OrdinalIgnoreCase))+ {+ return "/mediabrowser" + path;+ }++ return "mediabrowser/" + path;+ }+private string DoubleNormalizeEmbyRoutePath(string path){if (path.StartsWith("/", StringComparison.OrdinalIgnoreCase))