HomeDisk/src/server/api/mod.rs

16 lines
257 B
Rust

mod auth;
mod fs;
use axum::routing::*;
pub async fn health() -> &'static str {
"I am working!"
}
pub fn app() -> Router {
Router::new()
.nest("/auth", auth::app())
.nest("/fs", fs::app())
.route("/health", get(health))
}