feat: enhance HTTP logging and API responses with content metadata
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
@@ -12,13 +12,14 @@ use crate::meta_plugin::MetaPluginType;
|
||||
get,
|
||||
path = "/api/status",
|
||||
responses(
|
||||
(status = 200, description = "Successfully retrieved status information", body = ApiResponse<StatusInfo>),
|
||||
(status = 401, description = "Unauthorized"),
|
||||
(status = 500, description = "Internal server error")
|
||||
(status = 200, description = "Successfully retrieved status information including database path, data directory, and supported plugins", body = ApiResponse<StatusInfo>),
|
||||
(status = 401, description = "Unauthorized - Invalid or missing authentication credentials"),
|
||||
(status = 500, description = "Internal server error - Failed to retrieve status information")
|
||||
),
|
||||
security(
|
||||
("bearerAuth" = [])
|
||||
)
|
||||
),
|
||||
tag = "status"
|
||||
)]
|
||||
pub async fn handle_status(
|
||||
State(state): State<AppState>,
|
||||
|
||||
Reference in New Issue
Block a user