summaryrefslogtreecommitdiff
path: root/src/routes/device.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2024-04-08 10:42:47 +0200
committerFxQnLr <[email protected]>2024-04-08 10:42:47 +0200
commitd8060da1180545df5d03a76cd2860191ecf87507 (patch)
treebe0c7812bd4a9a1ad6c8529072516a4a572ff17f /src/routes/device.rs
parent8dca7e83519b6c3531653cdedf60b2a14e1035b7 (diff)
downloadwebol-d8060da1180545df5d03a76cd2860191ecf87507.tar
webol-d8060da1180545df5d03a76cd2860191ecf87507.tar.gz
webol-d8060da1180545df5d03a76cd2860191ecf87507.zip
Closes #23. Start request id parameter put in path
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> {