chore: update routes to use utoipa

This commit is contained in:
Zomatree
2025-11-17 22:13:07 +00:00
parent ac60b2c795
commit 43c94b68b0
110 changed files with 891 additions and 231 deletions

View File

@@ -24,7 +24,7 @@ pub struct CategoriesQueryParams {
security(("Session-Token" = []), ("Bot-Token" = [])),
params(CategoriesQueryParams),
responses(
(status = 200, description = "Categories results", body = inline(Vec<types::CategoryResponse>)),
(status = 200, description = "Categories results", body = Vec<types::CategoryResponse>),
(status = "default", body = Error)
)
)]

View File

@@ -11,7 +11,7 @@ static CRATE_VERSION: &str = env!("CARGO_PKG_VERSION");
path = "/",
tag = "Misc",
responses(
(status = 200, description = "Root response", body = inline(types::RootResponse))
(status = 200, description = "Root response", body = types::RootResponse)
)
)]
pub async fn root() -> Json<types::RootResponse<'static>> {