Can get VM caps

This commit is contained in:
2024-05-03 19:19:37 +02:00
parent b6e15d2cbb
commit 50600e4e56
6 changed files with 186 additions and 8 deletions

View File

@ -11,7 +11,7 @@ use actix_web::{web, App, HttpServer};
use light_openid::basic_state_manager::BasicStateManager;
use remote_backend::app_config::AppConfig;
use remote_backend::constants;
use remote_backend::controllers::{auth_controller, server_controller};
use remote_backend::controllers::{auth_controller, server_controller, vm_controller};
use remote_backend::middlewares::auth_middleware::AuthChecker;
use std::time::Duration;
@ -79,6 +79,7 @@ async fn main() -> std::io::Result<()> {
"/api/auth/sign_out",
web::get().to(auth_controller::sign_out),
)
.route("/api/vm/list", web::get().to(vm_controller::list))
})
.bind(&AppConfig::get().listen_address)?
.run()