This repository has been archived on 2025-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
veil/src/routes/health.rs
2025-03-28 14:36:43 +00:00

14 lines
318 B
Rust

use axum::{Router, http::StatusCode, response::IntoResponse, routing};
use crate::state::State;
pub async fn get() -> Result<impl IntoResponse, StatusCode> {
Ok(StatusCode::OK)
}
pub fn routes(state: State) -> Router {
Router::new()
.route("/health", routing::get(get))
.with_state(state)
}