Merge pull request #3450 from crobibero/api-fix-swagger-order

Fix docs endpoint order
This commit is contained in:
dkanada 2020-06-26 19:21:48 +09:00 committed by GitHub
commit 3b99e691a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ namespace Jellyfin.Server.Extensions
// Order actions by route path, then by http method.
c.OrderActionsBy(description =>
$"{description.ActionDescriptor.RouteValues["controller"]}_{description.HttpMethod}");
$"{description.ActionDescriptor.RouteValues["controller"]}_{description.RelativePath}");
// Use method name as operationId
c.CustomOperationIds(description =>