api3/config/datastore.rs: return real data
This commit is contained in:
1 parent
6349ed60b4
commit
b65eaac62d
2 files changed
+16
-5
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user