mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-10-28 08:20:49 +08:00
feat(bluetooth-hid): 支持经典蓝牙 HID 后端
This commit is contained in:
@@ -91,6 +91,14 @@ pub fn create_router(state: Arc<AppState>) -> Router {
|
||||
.route("/webrtc/close", post(handlers::webrtc_close_session))
|
||||
// HID endpoints
|
||||
.route("/hid/status", get(handlers::hid_status))
|
||||
.route(
|
||||
"/hid/bluetooth/adapters",
|
||||
get(handlers::hid_bluetooth_adapters),
|
||||
)
|
||||
.route(
|
||||
"/hid/bluetooth",
|
||||
get(handlers::hid_bluetooth_status).post(handlers::hid_bluetooth_action),
|
||||
)
|
||||
.route(
|
||||
"/hid/ch9329/descriptor",
|
||||
get(handlers::hid_ch9329_descriptor),
|
||||
|
||||
Reference in New Issue
Block a user