fix: 修复 rtsp 和 RustDesk 扩展启停错误;修改部分参数描述文本

This commit is contained in:
mofeng-git
2026-05-23 15:16:39 +00:00
parent 3de72677e6
commit dc6475776e
10 changed files with 271 additions and 457 deletions

View File

@@ -131,6 +131,14 @@ pub fn create_router(state: Arc<AppState>) -> Router {
"/config/rustdesk/regenerate-password",
post(handlers::config::regenerate_device_password),
)
.route(
"/config/rustdesk/start",
post(handlers::config::start_rustdesk_service),
)
.route(
"/config/rustdesk/stop",
post(handlers::config::stop_rustdesk_service),
)
// RTSP configuration endpoints
.route("/config/rtsp", get(handlers::config::get_rtsp_config))
.route("/config/rtsp", patch(handlers::config::update_rtsp_config))
@@ -138,6 +146,14 @@ pub fn create_router(state: Arc<AppState>) -> Router {
"/config/rtsp/status",
get(handlers::config::get_rtsp_status),
)
.route(
"/config/rtsp/start",
post(handlers::config::start_rtsp_service),
)
.route(
"/config/rtsp/stop",
post(handlers::config::stop_rtsp_service),
)
// Web server configuration
.route("/config/web", get(handlers::config::get_web_config))
.route("/config/web", patch(handlers::config::update_web_config))