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
|
|
|
|
|
|
|
pub fn router() -> Router {
|
|
|
|
|
|
|
|
let route = Router::new()
|
|
|
|
.subdir("dns", dns::router())
|
|
|
|
.subdir("network", network::router())
|
2019-01-26 16:54:18 +00:00
|
|
|
.subdir("services", services::router())
|
2019-01-25 16:17:30 +00:00
|
|
|
.subdir("syslog", syslog::router())
|
2019-04-07 10:18:58 +00:00
|
|
|
.subdir("tasks", tasks::router())
|
2019-04-16 10:07:02 +00:00
|
|
|
.subdir("time", time::router())
|
|
|
|
.list_subdirs();
|
2019-01-23 12:05:32 +00:00
|
|
|
|
|
|
|
route
|
|
|
|
}
|