it was a PUT
All checks were successful
Build and Test / account (push) Successful in 6m6s

This commit is contained in:
red binder 2026-04-26 19:58:17 +02:00
commit 196bfbf203

View file

@ -1,4 +1,4 @@
use rocket::{get, http::Status}; use rocket::{get, http::Status, put};
use serde::Serialize; use serde::Serialize;
use crate::xml::Xml; use crate::xml::Xml;
@ -11,7 +11,7 @@ pub fn current_device_status() -> Xml<Device>{
Xml(Device) Xml(Device)
} }
#[get("/v1/api/devices/@current/inactivate")] #[put("/v1/api/devices/@current/inactivate")]
pub fn inactivate_device() -> Status { pub fn inactivate_device() -> Status {
Status::Ok Status::Ok
} }