mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-06-15 12:12:01 +08:00
fix: 修复 rtsp 和 RustDesk 扩展启停错误;修改部分参数描述文本
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user