27 lines
575 B
Rust
27 lines
575 B
Rust
pub mod types;
|
|
pub mod config;
|
|
pub mod admin;
|
|
pub mod node;
|
|
mod version;
|
|
mod subscription;
|
|
mod access;
|
|
|
|
use crate::api_schema::router::*;
|
|
|
|
pub fn router() -> Router {
|
|
|
|
let nodes = Router::new()
|
|
.match_all("node", node::router());
|
|
|
|
let route = Router::new()
|
|
.subdir("access", access::router())
|
|
.subdir("admin", admin::router())
|
|
.subdir("config", config::router())
|
|
.subdir("nodes", nodes)
|
|
.subdir("subscription", subscription::router())
|
|
.subdir("version", version::router())
|
|
.list_subdirs();
|
|
|
|
route
|
|
}
|