Permissions, shutdown route
This commit is contained in:
parent
15d0d174a9
commit
ac01c03094
4 changed files with 31 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ async fn main() {
|
|||
get(routes::services::service_logs),
|
||||
)
|
||||
.route("/system/reboot", post(routes::system::system_reboot))
|
||||
.route("/system/shutdown", post(routes::system::system_shutdown))
|
||||
.route_layer(middleware::from_fn(auth::require_auth));
|
||||
|
||||
let app = Router::new()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue