mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-10-27 16:00:49 +08:00
feat: 新增安卓平台支持
This commit is contained in:
@@ -4,7 +4,7 @@ mod event;
|
||||
mod managers;
|
||||
mod session;
|
||||
mod systems;
|
||||
#[cfg(unix)]
|
||||
#[cfg(all(unix, not(feature = "android")))]
|
||||
mod virtual_media;
|
||||
|
||||
use axum::{
|
||||
@@ -200,7 +200,7 @@ pub fn create_redfish_router(state: Arc<AppState>) -> Router {
|
||||
redfish_auth_middleware,
|
||||
));
|
||||
|
||||
#[cfg(unix)]
|
||||
#[cfg(all(unix, not(feature = "android")))]
|
||||
let redfish_routes = redfish_routes.merge(virtual_media::router(state.clone()));
|
||||
|
||||
Router::new()
|
||||
|
||||
Reference in New Issue
Block a user