feat: 初步支持 USB 网卡桥接;删除 OTG 端点预算管理

This commit is contained in:
mofeng-git
2026-07-16 19:19:24 +08:00
parent 63c2bb4ca2
commit 213359b6c8
35 changed files with 2367 additions and 727 deletions

View File

@@ -246,6 +246,19 @@ pub fn create_router(state: Arc<AppState>) -> Router {
.route("/hid/otg/self-check", get(handlers::hid_otg_self_check))
.route("/config/msd", get(handlers::config::get_msd_config))
.route("/config/msd", patch(handlers::config::update_msd_config))
.route("/config/otg", patch(handlers::config::update_otg_config))
.route(
"/config/otg-network",
get(handlers::config::get_otg_network_config),
)
.route(
"/config/otg-network",
patch(handlers::config::update_otg_network_config),
)
.route(
"/otg/network/status",
get(handlers::config::get_otg_network_status),
)
.route("/msd/status", get(handlers::msd_status))
.route("/msd/images", get(handlers::msd_images_list))
.route("/msd/images/download", post(handlers::msd_image_download))
@@ -277,6 +290,10 @@ pub fn create_router(state: Arc<AppState>) -> Router {
)
.route("/msd/drive/mkdir/{*path}", post(handlers::msd_drive_mkdir))
.route("/devices/usb", get(handlers::devices::list_usb_devices))
.route(
"/devices/network",
get(handlers::devices::list_network_interfaces),
)
.route(
"/devices/usb/reset",
post(handlers::devices::reset_usb_device),