fix(routing): removes "/" route - now redirects to "/admin"

This commit is contained in:
2026-07-18 11:03:42 +02:00
parent f5c3e0954b
commit b0bf1eeae0
+1 -8
View File
@@ -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) =>
{ {