Permissions, shutdown route

This commit is contained in:
Jack Mechem 2026-03-30 19:53:55 -07:00
parent 15d0d174a9
commit ac01c03094
4 changed files with 31 additions and 1 deletions

View file

@ -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()