aboutsummaryrefslogtreecommitdiff
path: root/src/routes/device.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/device.rs')
-rw-r--r--src/routes/device.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/device.rs b/src/routes/device.rs
index d01d9f0..bbc832d 100644
--- a/src/routes/device.rs
+++ b/src/routes/device.rs
@@ -20,7 +20,7 @@ use utoipa::ToSchema;
20 security(("api_key" = [])) 20 security(("api_key" = []))
21)] 21)]
22#[deprecated] 22#[deprecated]
23pub async fn get( 23pub async fn get_payload(
24 State(state): State<Arc<crate::AppState>>, 24 State(state): State<Arc<crate::AppState>>,
25 Json(payload): Json<GetDevicePayload>, 25 Json(payload): Json<GetDevicePayload>,
26) -> Result<Json<Value>, Error> { 26) -> Result<Json<Value>, Error> {
@@ -53,7 +53,7 @@ pub async fn get(
53 ), 53 ),
54 security(("api_key" = [])) 54 security(("api_key" = []))
55)] 55)]
56pub async fn get_path( 56pub async fn get(
57 State(state): State<Arc<crate::AppState>>, 57 State(state): State<Arc<crate::AppState>>,
58 Path(path): Path<String>, 58 Path(path): Path<String>,
59) -> Result<Json<Value>, Error> { 59) -> Result<Json<Value>, Error> {