diff options
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 f767eab..6f1c371 100644 --- a/src/routes/device.rs +++ b/src/routes/device.rs | |||
@@ -44,7 +44,7 @@ pub struct DPayload { | |||
44 | path = "/device", | 44 | path = "/device", |
45 | request_body = DPayload, | 45 | request_body = DPayload, |
46 | responses( | 46 | responses( |
47 | (status = 200, description = "add device to storage", body = [DeviceSchema]) | 47 | (status = 200, description = "add device to storage", body = [Device]) |
48 | ), | 48 | ), |
49 | security((), ("api_key" = [])) | 49 | security((), ("api_key" = [])) |
50 | )] | 50 | )] |
@@ -77,7 +77,7 @@ pub async fn put(Json(payload): Json<DPayload>) -> Result<Json<Value>, Error> { | |||
77 | path = "/device", | 77 | path = "/device", |
78 | request_body = DPayload, | 78 | request_body = DPayload, |
79 | responses( | 79 | responses( |
80 | (status = 200, description = "update device in storage", body = [DeviceSchema]) | 80 | (status = 200, description = "update device in storage", body = [Device]) |
81 | ), | 81 | ), |
82 | security((), ("api_key" = [])) | 82 | security((), ("api_key" = [])) |
83 | )] | 83 | )] |