zero-to-axum/src/server/routes/mod.rs
2023-12-20 13:08:04 -06:00

15 lines
352 B
Rust

mod auth;
use axum::{routing::get, Router};
use super::AppState;
pub fn build() -> Router<AppState> {
let auth = auth::build();
Router::new()
.route("/health", get(health_check))
.nest("/auth", auth)
}
// 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() {}