14 lines
318 B
Rust
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)
|
|
}
|