2019-02-17 08:59:20 +00:00
|
|
|
use crate::api_schema::router::*;
|
2019-01-23 12:05:32 +00:00
|
|
|
|
2019-04-07 10:18:58 +00:00
|
|
|
mod tasks;
|
2019-01-23 12:05:32 +00:00
|
|
|
mod time;
|
|
|
|
mod network;
|
|
|
|
mod dns;
|
2019-01-25 16:17:30 +00:00
|
|
|
mod syslog;
|
2019-01-26 16:54:18 +00:00
|
|
|
mod services;
|
2019-01-23 12:05:32 +00:00
|
|
|
|
2019-11-21 08:36:41 +00:00
|
|
|
pub const SUBDIRS: SubdirMap = &[
|
|
|
|
("dns", &dns::ROUTER),
|
|
|
|
("network", &network::ROUTER),
|
|
|
|
("services", &services::ROUTER),
|
|
|
|
("syslog", &syslog::ROUTER),
|
|
|
|
("tasks", &tasks::ROUTER),
|
|
|
|
("time", &time::ROUTER),
|
|
|
|
];
|
|
|
|
|
|
|
|
pub const ROUTER: Router = Router::new()
|
|
|
|
.get(&list_subdirs_api_method!(SUBDIRS))
|
|
|
|
.subdirs(SUBDIRS);
|