Преглед на файлове

Order actions by route, then http method

crobibero преди 5 години
родител
ревизия
068368df63
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs

+ 4 - 0
Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs

@@ -105,6 +105,10 @@ namespace Jellyfin.Server.Extensions
                 {
                     c.IncludeXmlComments(xmlFile);
                 }
+
+                // Order actions by route path, then by http method.
+                c.OrderActionsBy(description =>
+                    $"{description.ActionDescriptor.RouteValues["controller"]}_{description.HttpMethod}");
             });
         }
     }