chore: update routes to use utoipa
This commit is contained in:
@@ -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)
|
||||
)
|
||||
)]
|
||||
|
||||
@@ -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>> {
|
||||
|
||||
Reference in New Issue
Block a user