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:
LD50
2026-07-18 11:04:44 +02:00
committed by GitHub
+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) =>
{ {