diff options
author | fxqnlr <[email protected]> | 2024-07-02 14:56:01 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-07-02 14:56:01 +0200 |
commit | 9329d197f37b68c1800cc7c81a741491c3cd0c6c (patch) | |
tree | b6bccb03702b0301305193acdb572e51cd286e78 /src/routes | |
parent | 7c631abbc607468e6796a1d47aa7d9da48d6340e (diff) | |
parent | e4a1dac094556f0a4000b429897402facc09e03f (diff) | |
download | webol-9329d197f37b68c1800cc7c81a741491c3cd0c6c.tar webol-9329d197f37b68c1800cc7c81a741491c3cd0c6c.tar.gz webol-9329d197f37b68c1800cc7c81a741491c3cd0c6c.zip |
Merge branch 'main' into server-error
Diffstat (limited to 'src/routes')
-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 | )] |