2019-02-17 08:59:20 +00:00
|
|
|
use crate::api_schema::schema::*;
|
|
|
|
use crate::api_schema::router::*;
|
2019-01-04 09:32:27 +00:00
|
|
|
use serde_json::{json};
|
|
|
|
|
|
|
|
pub mod datastore;
|
|
|
|
|
|
|
|
pub fn router() -> Router {
|
|
|
|
|
|
|
|
let route = Router::new()
|
|
|
|
.get(ApiMethod::new(
|
2019-01-26 13:50:37 +00:00
|
|
|
|_,_,_| Ok(json!([
|
2019-01-04 09:32:27 +00:00
|
|
|
{"subdir": "datastore"}
|
|
|
|
])),
|
|
|
|
ObjectSchema::new("Directory index.")))
|
|
|
|
.subdir("datastore", datastore::router());
|
|
|
|
|
|
|
|
route
|
|
|
|
}
|