VirtWebRemote/remote_backend/src/controllers/sys_info_controller.rs
Pierre HUBERT 184a106542
All checks were successful
continuous-integration/drone/push Build is passing
Centralize rights management
2024-11-30 10:26:14 +01:00

9 lines
237 B
Rust

use crate::controllers::HttpResult;
use crate::virtweb_client;
use actix_web::HttpResponse;
/// Get current system status
pub async fn status() -> HttpResult {
Ok(HttpResponse::Ok().json(virtweb_client::get_server_info().await?))
}