diff options
| author | Tolmachev Igor <me@igorek.dev> | 2025-09-25 15:54:04 +0300 |
|---|---|---|
| committer | Tolmachev Igor <me@igorek.dev> | 2025-09-25 15:54:04 +0300 |
| commit | 2bccd70a3f70b13f10a687aea234fdc43ef12a0c (patch) | |
| tree | 1c8877571a09116bb38b6cc9b30466c52186fb96 /src/routers/queue | |
| parent | 5df718af71cc861f7b7ced5635a38ed9e76cb0f1 (diff) | |
| download | queue_server-2bccd70a3f70b13f10a687aea234fdc43ef12a0c.tar.gz queue_server-2bccd70a3f70b13f10a687aea234fdc43ef12a0c.zip | |
Rename /change methods to /update
Diffstat (limited to 'src/routers/queue')
| -rw-r--r-- | src/routers/queue/manage.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/routers/queue/manage.rs b/src/routers/queue/manage.rs index f174bd5..f6587d1 100644 --- a/src/routers/queue/manage.rs +++ b/src/routers/queue/manage.rs | |||
| @@ -130,7 +130,7 @@ async fn create( | |||
| 130 | 130 | ||
| 131 | #[utoipa::path( | 131 | #[utoipa::path( |
| 132 | put, | 132 | put, |
| 133 | path = "/change/name", | 133 | path = "/update/name", |
| 134 | tag = QUEUE, | 134 | tag = QUEUE, |
| 135 | summary = "Change name", | 135 | summary = "Change name", |
| 136 | description = "Change queue name", | 136 | description = "Change queue name", |
| @@ -144,7 +144,7 @@ async fn create( | |||
| 144 | ), | 144 | ), |
| 145 | security(("auth" = [])), | 145 | security(("auth" = [])), |
| 146 | )] | 146 | )] |
| 147 | async fn change_name( | 147 | async fn update_name( |
| 148 | State(state): State<AppState>, | 148 | State(state): State<AppState>, |
| 149 | Auth(user): Auth, | 149 | Auth(user): Auth, |
| 150 | ApiJson(req): ApiJson<ChangeQueueNameRequest>, | 150 | ApiJson(req): ApiJson<ChangeQueueNameRequest>, |
| @@ -161,7 +161,7 @@ async fn change_name( | |||
| 161 | 161 | ||
| 162 | #[utoipa::path( | 162 | #[utoipa::path( |
| 163 | put, | 163 | put, |
| 164 | path = "/change/owner", | 164 | path = "/update/owner", |
| 165 | tag = QUEUE, | 165 | tag = QUEUE, |
| 166 | summary = "Change owner", | 166 | summary = "Change owner", |
| 167 | description = "Reassign queue ownership", | 167 | description = "Reassign queue ownership", |
| @@ -175,7 +175,7 @@ async fn change_name( | |||
| 175 | ), | 175 | ), |
| 176 | security(("auth" = [])), | 176 | security(("auth" = [])), |
| 177 | )] | 177 | )] |
| 178 | async fn change_owner( | 178 | async fn update_owner( |
| 179 | State(state): State<AppState>, | 179 | State(state): State<AppState>, |
| 180 | Auth(user): Auth, | 180 | Auth(user): Auth, |
| 181 | ApiJson(req): ApiJson<ChangeQueueOwnershipRequest>, | 181 | ApiJson(req): ApiJson<ChangeQueueOwnershipRequest>, |
| @@ -227,7 +227,7 @@ pub fn router() -> OpenApiRouter<AppState> { | |||
| 227 | OpenApiRouter::new() | 227 | OpenApiRouter::new() |
| 228 | .routes(routes!(owned)) | 228 | .routes(routes!(owned)) |
| 229 | .routes(routes!(create)) | 229 | .routes(routes!(create)) |
| 230 | .routes(routes!(change_name)) | 230 | .routes(routes!(update_name)) |
| 231 | .routes(routes!(change_owner)) | 231 | .routes(routes!(update_owner)) |
| 232 | .routes(routes!(delete)) | 232 | .routes(routes!(delete)) |
| 233 | } | 233 | } |
