diff options
author | FxQnLr <[email protected]> | 2024-04-08 10:42:47 +0200 |
---|---|---|
committer | FxQnLr <[email protected]> | 2024-04-08 10:42:47 +0200 |
commit | d8060da1180545df5d03a76cd2860191ecf87507 (patch) | |
tree | be0c7812bd4a9a1ad6c8529072516a4a572ff17f /src/routes/device.rs | |
parent | 8dca7e83519b6c3531653cdedf60b2a14e1035b7 (diff) | |
download | webol-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.rs | 4 |
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] |
23 | pub async fn get( | 23 | pub 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 | )] |
56 | pub async fn get_path( | 56 | pub 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> { |