This commit is contained in:
Pilzinsel64
2025-06-13 10:30:09 +02:00
parent ee1ea2f0b0
commit 0ff158b46e

View File

@@ -185,7 +185,7 @@ public class ApiServer : IApiServer
public virtual Dictionary<string, string[]> GetEndpoints()
{
return handlers.GroupBy(n => n.Attribute.Route).ToDictionary(n => n.Key, n => n.SelectMany(n => n.Attribute.Methods).ToArray());
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());
}
public virtual void RegisterHandler<T>(T instance) where T : class