Skip to content

Commit 44f2a0f

Browse files
committed
web: fix: change /restart and /reboot routes to POST to match frontend
1 parent 63137f4 commit 44f2a0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/web.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ pub fn app(state: Arc<AppState>) -> Router {
6363
.route("/config", get(get_config).post(set_config))
6464
.route("/config-data", get(get_config_data))
6565
.route("/download", get(download_handler))
66-
.route("/restart", get(restart_handler))
67-
.route("/reboot", get(reboot_handler))
66+
.route("/restart", post(restart_handler))
67+
.route("/reboot", post(reboot_handler))
6868
.route("/upload-hex-model", post(upload_hex_model_handler))
6969
.route("/upload-certs", post(upload_cert_bundle_handler))
7070
.route("/battery", post(battery_handler))

0 commit comments

Comments
 (0)