HomeDisk/src/server/api/mod.rs

16 lines
257 B
Rust
Raw Normal View History

2022-09-14 17:51:12 +00:00
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))
}