feat: 增加 OpenWrt 系统管理入口

- 通过 ONE_KVM_OPENWRT=1 控制入口显示和跳转;
- 读取 uhttpd 当前监听配置,并跳转到 LuCI 地址。
This commit is contained in:
mofeng-git
2026-10-12 23:02:12 +08:00
parent 92f4203bc2
commit 2ebad622f0
9 changed files with 199 additions and 1 deletions

View File

@@ -276,6 +276,11 @@ pub fn create_router(state: Arc<AppState>) -> Router {
.route("/terminal/ws", get(handlers::terminal::terminal_ws))
.route("/terminal/{*path}", get(handlers::terminal::terminal_proxy));
let user_routes = user_routes.route(
"/system/openwrt",
get(super::openwrt_system::redirect_handler),
);
#[cfg(unix)]
let user_routes = {
user_routes