diff options
| author | crobibero <cody@robibe.ro> | 2020-04-26 23:28:32 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-04-26 23:28:32 -0600 |
| commit | 068368df6352cfad4e69df599c364b3f05b367ba (patch) | |
| tree | ca4630b3db0ec3279338991e21474bd82f569d0f | |
| parent | 890e659cd390fc45c68b42c1a20f24a33e8c1570 (diff) | |
Order actions by route, then http method
| -rw-r--r-- | Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs index 92bacb440..00a73ade6 100644 --- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs +++ b/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}"); }); } } |
