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

This commit is contained in:
2026-07-18 11:03:42 +02:00
parent c1c2d08915
commit 24fd8562cf
+1 -8
View File
@@ -108,14 +108,7 @@ app.UseWebSockets(new WebSocketOptions
app.MapAdminEndpoints(settings);
app.MapGet("/", (TunnelHub hub) =>
Results.Json(new
{
status = "ok",
connected = hub.HasClient,
pendingRequests = hub.PendingRequestCount,
clients = hub.ClientsSnapshot.Count
}));
app.MapGet("/", () => Results.Redirect("/admin"));
app.MapGet(settings.StatusPath, (HttpContext context, TunnelHub hub, ServerSettings serverSettings, EmbeddingCache embeddingCache, ManagementStore managementStore) =>
{