feat(presentation): add utoipa::path annotations to all handlers
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use axum::{extract::State, Json};
|
||||
use crate::state::AppState;
|
||||
|
||||
#[utoipa::path(get, path = "/health", responses((status = 200, description = "Service health status")))]
|
||||
pub async fn health_handler(State(s): State<AppState>) -> Json<serde_json::Value> {
|
||||
let db_ok = s.users.list_with_stats().await.is_ok();
|
||||
Json(serde_json::json!({
|
||||
|
||||
Reference in New Issue
Block a user