sort endpoints by route

This commit is contained in:
sbwalker 2025-03-11 13:11:19 -04:00
parent 8d4b30140e
commit 262d6a1529
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@
<button type="button" class="btn btn-success" @onclick="SaveConfig">@SharedLocalizer["Save"]</button>&nbsp; <button type="button" class="btn btn-success" @onclick="SaveConfig">@SharedLocalizer["Save"]</button>&nbsp;
<ActionDialog Header="Restart Application" Message="Are You Sure You Wish To Restart The Application?" Action="Restart Application" Security="SecurityAccessLevel.Host" Class="btn btn-danger" OnClick="@(async () => await RestartApplication())" ResourceKey="RestartApplication" /> <ActionDialog Header="Restart Application" Message="Are You Sure You Wish To Restart The Application?" Action="Restart Application" Security="SecurityAccessLevel.Host" Class="btn btn-danger" OnClick="@(async () => await RestartApplication())" ResourceKey="RestartApplication" />
<br /><br /> <br /><br />
<a class="btn btn-secondary" href="swagger/index.html" target="_new">@Localizer["Swagger"]</a>&nbsp; <a class="btn btn-primary" href="swagger/index.html" target="_new">@Localizer["Swagger"]</a>&nbsp;
<a class="btn btn-secondary" href="api/endpoint" target="_new">@Localizer["Endpoints"]</a> <a class="btn btn-secondary" href="api/endpoint" target="_new">@Localizer["Endpoints"]</a>
</TabPanel> </TabPanel>
<TabPanel Name="Log" Heading="Log" ResourceKey="Log"> <TabPanel Name="Log" Heading="Log" ResourceKey="Log">

View File

@ -48,7 +48,7 @@ namespace Oqtane.Controllers
ControllerMethod = controllerMethod ControllerMethod = controllerMethod
}; };
} }
); ).OrderBy(item => item.Route);
return Json(output); return Json(output);
} }