Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 0 additions & 91 deletions crates/admin/src/rest_api/cluster_health.rs

This file was deleted.

22 changes: 0 additions & 22 deletions crates/admin/src/rest_api/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,25 +395,3 @@ impl From<ShutdownError> for MetaApiError {
MetaApiError::Internal(value.to_string())
}
}

pub(crate) struct GenericRestError {
status_code: StatusCode,
error_message: String,
}

impl GenericRestError {
pub fn new(status_code: StatusCode, error_message: impl Into<String>) -> Self {
Self {
status_code,
error_message: error_message.into(),
}
}
}

impl IntoResponse for GenericRestError {
fn into_response(self) -> Response {
(self.status_code, self.error_message).into_response()
}
}

// ToResponses removed - errors listed explicitly in handler annotations
2 changes: 0 additions & 2 deletions crates/admin/src/rest_api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

//! This module implements the Meta API endpoint.

mod cluster_health;
mod deployments;
mod error;
mod handlers;
Expand Down Expand Up @@ -90,7 +89,6 @@ where
OpenApiRouter::with_openapi(AdminApiDoc::openapi())
.routes(routes!(health::health))
.routes(routes!(version::version))
.routes(routes!(cluster_health::cluster_health))
// Deployment endpoints
.routes(routes!(deployments::list_deployments))
.routes(routes!(deployments::create_deployment))
Expand Down
Loading