VirtWebRemote/remote_backend/src/controllers/sys_info_controller.rs

9 lines
237 B
Rust
Raw Normal View History

2024-05-03 19:24:43 +00:00
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?))
}