hopefully fix sorting
This commit is contained in:
@@ -185,7 +185,7 @@ public class ApiServer : IApiServer
|
|||||||
|
|
||||||
public virtual Dictionary<string, string[]> GetEndpoints()
|
public virtual Dictionary<string, string[]> GetEndpoints()
|
||||||
{
|
{
|
||||||
return handlers.GroupBy(n => n.Attribute.Route).OrderBy(n => n.Key).ToDictionary(n => n.Key, n => n.SelectMany(n => n.Attribute.Methods.OrderBy(n => n)).ToArray());
|
return handlers.OrderBy(n => n.Attribute.Route).GroupBy(n => n.Attribute.Route).ToDictionary(n => n.Key, n => n.SelectMany(n => n.Attribute.Methods.OrderBy(n => n)).ToArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void RegisterHandler<T>(T instance) where T : class
|
public virtual void RegisterHandler<T>(T instance) where T : class
|
||||||
|
|||||||
Reference in New Issue
Block a user