Centralize rights management
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -82,8 +82,11 @@ async fn main() -> std::io::Result<()> {
|
||||
"/api/auth/sign_out",
|
||||
web::get().to(auth_controller::sign_out),
|
||||
)
|
||||
.route(
|
||||
"/api/server/rights",
|
||||
web::get().to(server_controller::rights),
|
||||
)
|
||||
// VM routes
|
||||
.route("/api/vm/list", web::get().to(vm_controller::list))
|
||||
.route("/api/vm/{uid}/state", web::get().to(vm_controller::state))
|
||||
.route("/api/vm/{uid}/start", web::get().to(vm_controller::start))
|
||||
.route(
|
||||
@ -102,10 +105,6 @@ async fn main() -> std::io::Result<()> {
|
||||
web::get().to(vm_controller::screenshot),
|
||||
)
|
||||
// Sys info routes
|
||||
.route(
|
||||
"/api/sysinfo/config",
|
||||
web::get().to(sys_info_controller::config),
|
||||
)
|
||||
.route(
|
||||
"/api/sysinfo/status",
|
||||
web::get().to(sys_info_controller::status),
|
||||
|
Reference in New Issue
Block a user