]> git.proxmox.com Git - proxmox-backup.git/blame - src/api3/config.rs
rename entry to item
[proxmox-backup.git] / src / api3 / config.rs
CommitLineData
461e62fc
DM
1//use failure::*;
2//use std::collections::HashMap;
6ce50400
DM
3
4use crate::api::schema::*;
5use crate::api::router::*;
461e62fc 6use serde_json::{json};
6ce50400
DM
7
8mod datastore;
9
10pub fn router() -> Router {
11
12 let route = Router::new()
13 .get(ApiMethod::new(
14 |_,_| Ok(json!([
15 {"subdir": "datastore"}
16 ])),
17 ObjectSchema::new("Directory index.")))
18 .subdir("datastore", datastore::router());
19
20
21 route
22}