Implements VM groups API (#206)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #206
This commit is contained in:
@ -212,6 +212,42 @@ async fn main() -> std::io::Result<()> {
|
||||
.route("/api/vnc", web::get().to(vm_controller::vnc))
|
||||
// Groups controller
|
||||
.route("/api/group/list", web::get().to(groups_controller::list))
|
||||
.route(
|
||||
"/api/group/{gid}/vm/info",
|
||||
web::get().to(groups_controller::vm_info),
|
||||
)
|
||||
.route(
|
||||
"/api/group/{gid}/vm/start",
|
||||
web::get().to(groups_controller::vm_start),
|
||||
)
|
||||
.route(
|
||||
"/api/group/{gid}/vm/shutdown",
|
||||
web::get().to(groups_controller::vm_shutdown),
|
||||
)
|
||||
.route(
|
||||
"/api/group/{gid}/vm/suspend",
|
||||
web::get().to(groups_controller::vm_suspend),
|
||||
)
|
||||
.route(
|
||||
"/api/group/{gid}/vm/resume",
|
||||
web::get().to(groups_controller::vm_resume),
|
||||
)
|
||||
.route(
|
||||
"/api/group/{gid}/vm/kill",
|
||||
web::get().to(groups_controller::vm_kill),
|
||||
)
|
||||
.route(
|
||||
"/api/group/{gid}/vm/reset",
|
||||
web::get().to(groups_controller::vm_reset),
|
||||
)
|
||||
.route(
|
||||
"/api/group/{gid}/vm/screenshot",
|
||||
web::get().to(groups_controller::vm_screenshot),
|
||||
)
|
||||
.route(
|
||||
"/api/group/{gid}/vm/state",
|
||||
web::get().to(groups_controller::vm_state),
|
||||
)
|
||||
// Network controller
|
||||
.route(
|
||||
"/api/network/create",
|
||||
|
Reference in New Issue
Block a user