src/api_schema/router.rs: fix typo (subdira -> subdir)

This commit is contained in:
Dietmar Maurer 2019-04-16 12:20:17 +02:00
parent 13f1cc17ea
commit e06ffb10d1
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ impl Router {
}
match self.subroute {
SubRoute::Hash(ref map) => {
let index = json!(map.keys().map(|s| json!({ "subdira": s}))
let index = json!(map.keys().map(|s| json!({ "subdir": s}))
.collect::<Vec<Value>>());
self.get(ApiMethod::new(
move || { Ok(index.clone()) },