jax-daemon 0.1.17

End-to-end encrypted storage buckets with peer-to-peer synchronization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use axum::Router;

pub mod bucket;
#[cfg(feature = "fuse")]
pub mod mounts;

use crate::ServiceState;

pub fn router(state: ServiceState) -> Router<ServiceState> {
    let router = Router::new().nest("/bucket", bucket::router(state.clone()));

    #[cfg(feature = "fuse")]
    let router = router.nest("/mounts", mounts::router(state.clone()));

    router.with_state(state)
}