Can start a domain

This commit is contained in:
2023-10-10 12:35:43 +02:00
parent 908b0f4c56
commit 0c7128e6eb
6 changed files with 38 additions and 1 deletions

View File

@ -138,6 +138,7 @@ async fn main() -> std::io::Result<()> {
.route("/api/vm/create", web::post().to(vm_controller::create))
.route("/api/vm/list", web::get().to(vm_controller::list_all))
.route("/api/vm/{uid}", web::get().to(vm_controller::get_single))
.route("/api/vm/{uid}/start", web::get().to(vm_controller::start))
})
.bind(&AppConfig::get().listen_address)?
.run()