Merge pull request #17 from LD-Reborn/2-remove-web-root-page-make-it-a-redirect
fix(routing): removes "/" route - now redirects to "/admin"
This commit is contained in:
@@ -108,14 +108,7 @@ app.UseWebSockets(new WebSocketOptions
|
|||||||
|
|
||||||
app.MapAdminEndpoints(settings);
|
app.MapAdminEndpoints(settings);
|
||||||
|
|
||||||
app.MapGet("/", (TunnelHub hub) =>
|
app.MapGet("/", () => Results.Redirect("/admin"));
|
||||||
Results.Json(new
|
|
||||||
{
|
|
||||||
status = "ok",
|
|
||||||
connected = hub.HasClient,
|
|
||||||
pendingRequests = hub.PendingRequestCount,
|
|
||||||
clients = hub.ClientsSnapshot.Count
|
|
||||||
}));
|
|
||||||
|
|
||||||
app.MapGet(settings.StatusPath, (HttpContext context, TunnelHub hub, ServerSettings serverSettings, EmbeddingCache embeddingCache, ManagementStore managementStore) =>
|
app.MapGet(settings.StatusPath, (HttpContext context, TunnelHub hub, ServerSettings serverSettings, EmbeddingCache embeddingCache, ManagementStore managementStore) =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user