jax_daemon/http_server/api/v0/mod.rs
1use axum::Router;
2
3pub mod bucket;
4#[cfg(feature = "fuse")]
5pub mod mounts;
6
7use crate::ServiceState;
8
9pub fn router(state: ServiceState) -> Router<ServiceState> {
10 let router = Router::new().nest("/bucket", bucket::router(state.clone()));
11
12 #[cfg(feature = "fuse")]
13 let router = router.nest("/mounts", mounts::router(state.clone()));
14
15 router.with_state(state)
16}