From 0969fb5d511a364cc7c6be280045db4a94bb3f6f Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 15 Apr 2026 18:57:35 +0000 Subject: [PATCH] fix: remove duplicate / route in gateway that causes panic on startup gateway_index_handler and embedded_index both registered at /. The embedded React frontend should serve /. Remove the old gateway index handler. Co-Authored-By: Claude Opus 4.6 (1M context) --- server/src/gateway.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/server/src/gateway.rs b/server/src/gateway.rs index 58d5672e..18550947 100644 --- a/server/src/gateway.rs +++ b/server/src/gateway.rs @@ -1678,7 +1678,6 @@ pub async fn run(config_path: &Path, port: u16) -> Result<(), std::io::Error> { *state_arc.bot_handle.lock().await = bot_abort; let route = poem::Route::new() - .at("/", poem::get(gateway_index_handler)) .at("/bot-config", poem::get(gateway_bot_config_page_handler)) .at("/api/gateway", poem::get(gateway_api_handler)) .at("/api/gateway/switch", poem::post(gateway_switch_handler))