diff options
Diffstat (limited to 'src/routers')
| -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 f6587d1..10f38f5 100644 --- a/src/routers/queue/manage.rs +++ b/src/routers/queue/manage.rs | |||
| @@ -12,7 +12,7 @@ use crate::{ | |||
| 12 | ApiError, ApiResult, AppState, ClientError, GlobalResponses, SuccessResponse, | 12 | ApiError, ApiResult, AppState, ClientError, GlobalResponses, SuccessResponse, |
| 13 | extract::{ApiJson, Auth}, | 13 | extract::{ApiJson, Auth}, |
| 14 | models::Queue, | 14 | models::Queue, |
| 15 | tags::QUEUE, | 15 | tags::QUEUE_MANAGEMENT, |
| 16 | }; | 16 | }; |
| 17 | 17 | ||
| 18 | async fn user_exists(id: i64, db: &DatabaseConnection) -> Result<bool, ApiError> { | 18 | async fn user_exists(id: i64, db: &DatabaseConnection) -> Result<bool, ApiError> { |
| @@ -71,7 +71,7 @@ struct DeleteQueueRequest { | |||
| 71 | #[utoipa::path( | 71 | #[utoipa::path( |
| 72 | get, | 72 | get, |
| 73 | path = "/owned", | 73 | path = "/owned", |
| 74 | tag = QUEUE, | 74 | tag = QUEUE_MANAGEMENT, |
| 75 | summary = "Get owned", | 75 | summary = "Get owned", |
| 76 | description = "Get your queues", | 76 | description = "Get your queues", |
| 77 | responses( | 77 | responses( |
| @@ -98,7 +98,7 @@ async fn owned(State(state): State<AppState>, Auth(user): Auth) -> ApiResult<Vec | |||
| 98 | #[utoipa::path( | 98 | #[utoipa::path( |
| 99 | post, | 99 | post, |
| 100 | path = "/create", | 100 | path = "/create", |
| 101 | tag = QUEUE, | 101 | tag = QUEUE_MANAGEMENT, |
| 102 | summary = "Create", | 102 | summary = "Create", |
| 103 | description = "Create a new queue", | 103 | description = "Create a new queue", |
| 104 | request_body = CreateQueueRequest, | 104 | request_body = CreateQueueRequest, |
| @@ -131,7 +131,7 @@ async fn create( | |||
| 131 | #[utoipa::path( | 131 | #[utoipa::path( |
| 132 | put, | 132 | put, |
| 133 | path = "/update/name", | 133 | path = "/update/name", |
| 134 | tag = QUEUE, | 134 | tag = QUEUE_MANAGEMENT, |
| 135 | summary = "Change name", | 135 | summary = "Change name", |
| 136 | description = "Change queue name", | 136 | description = "Change queue name", |
| 137 | request_body = ChangeQueueNameRequest, | 137 | request_body = ChangeQueueNameRequest, |
| @@ -162,7 +162,7 @@ async fn update_name( | |||
| 162 | #[utoipa::path( | 162 | #[utoipa::path( |
| 163 | put, | 163 | put, |
| 164 | path = "/update/owner", | 164 | path = "/update/owner", |
| 165 | tag = QUEUE, | 165 | tag = QUEUE_MANAGEMENT, |
| 166 | summary = "Change owner", | 166 | summary = "Change owner", |
| 167 | description = "Reassign queue ownership", | 167 | description = "Reassign queue ownership", |
| 168 | request_body = ChangeQueueOwnershipRequest, | 168 | request_body = ChangeQueueOwnershipRequest, |
| @@ -200,7 +200,7 @@ async fn update_owner( | |||
| 200 | #[utoipa::path( | 200 | #[utoipa::path( |
| 201 | delete, | 201 | delete, |
| 202 | path = "/delete", | 202 | path = "/delete", |
| 203 | tag = QUEUE, | 203 | tag = QUEUE_MANAGEMENT, |
| 204 | summary = "Delete", | 204 | summary = "Delete", |
| 205 | description = "Delete the queue", | 205 | description = "Delete the queue", |
| 206 | request_body = DeleteQueueRequest, | 206 | request_body = DeleteQueueRequest, |
