src/api2/node: start node configuration api

This commit is contained in:
Dietmar Maurer
2019-01-23 13:05:32 +01:00
parent d15009c0ce
commit b2b3485d5f
7 changed files with 106 additions and 6 deletions

View File

@ -12,7 +12,7 @@ pub fn router() -> Router {
let route = Router::new()
.get(ApiMethod::new(
|_,_| Ok(json!([
{"subdir": "datastore"}
{"subdir": "datastore"},
])),
ObjectSchema::new("Directory index.")))
.subdir("datastore", datastore::router());