From 59acad776cc6ca02f21857af7e7819caf6dc4cef Mon Sep 17 00:00:00 2001 From: retoor Date: Sat, 29 Nov 2025 01:04:25 +0100 Subject: [PATCH] Update. --- rproxy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rproxy.c b/rproxy.c index ed710d3..0269dff 100644 --- a/rproxy.c +++ b/rproxy.c @@ -1115,7 +1115,7 @@ const char *DASHBOARD_HTML = "\n" " async function updateStats() {\n" " try {\n" -" const response = await fetch('/api/stats');\n" +" const response = await fetch('/rproxy/api/stats');\n" " const data = await response.json();\n" "\n" " document.getElementById('connections').textContent = data.current.active_connections;\n" @@ -2078,8 +2078,8 @@ void handle_client_read(connection_t *conn) { if (strcmp(conn->request.method, "GET") == 0 && - (strncmp(conn->request.uri, "/dashboard", 10) == 0 || - strncmp(conn->request.uri, "/api/stats", 10) == 0)) { + (strncmp(conn->request.uri, "/rproxy/dashboard", 10) == 0 || + strncmp(conn->request.uri, "/rproxy/api/stats", 10) == 0)) { log_info("[ROUTING-INTERNAL] Serving internal route %s for fd=%d", conn->request.uri, conn->fd); @@ -2091,7 +2091,7 @@ void handle_client_read(connection_t *conn) { } conn->state = CLIENT_STATE_SERVING_INTERNAL; - if (strncmp(conn->request.uri, "/dashboard", 10) == 0) { + if (strncmp(conn->request.uri, "/rproxy/dashboard", 10) == 0) { serve_dashboard(conn); } else { serve_stats_api(conn);