This commit is contained in:
parent
559cb95ecb
commit
196bfbf203
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue