zero-to-axum/src/server/routes/mod.rs
2023-11-14 16:47:24 -06:00

8 lines
241 B
Rust

use axum::{routing::get, Router};
pub fn build() -> Router {
Router::new().route("/health", get(health_check))
}
// just always returns a 200 OK for now, the server has no state, if it's up, it's working
pub async fn health_check() {}