api3/config/datastore.rs: return real data

This commit is contained in:
Dietmar Maurer
2018-12-09 10:23:19 +01:00
parent 6349ed60b4
commit b65eaac62d
2 changed files with 16 additions and 5 deletions

View File

@ -10,10 +10,9 @@ use crate::config::datastore;
fn datastore_list(param: Value, _info: &ApiMethod) -> Result<Value, Error> {
println!("This is a test {}", param);
let config = datastore::config().unwrap();
Ok(json!({}))
let config = datastore::config()?;
Ok(config.convert_to_array("id"))
}
pub fn router() -> Router {