We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63137f4 commit 44f2a0fCopy full SHA for 44f2a0f
src/web.rs
@@ -63,8 +63,8 @@ pub fn app(state: Arc<AppState>) -> Router {
63
.route("/config", get(get_config).post(set_config))
64
.route("/config-data", get(get_config_data))
65
.route("/download", get(download_handler))
66
- .route("/restart", get(restart_handler))
67
- .route("/reboot", get(reboot_handler))
+ .route("/restart", post(restart_handler))
+ .route("/reboot", post(reboot_handler))
68
.route("/upload-hex-model", post(upload_hex_model_handler))
69
.route("/upload-certs", post(upload_cert_bundle_handler))
70
.route("/battery", post(battery_handler))
0 commit comments