proxmox-backup/src/api2/config.rs
2019-01-26 14:50:37 +01:00

23 lines
448 B
Rust

//use failure::*;
//use std::collections::HashMap;
use crate::api::schema::*;
use crate::api::router::*;
use serde_json::{json};
pub mod datastore;
pub fn router() -> Router {
let route = Router::new()
.get(ApiMethod::new(
|_,_,_| Ok(json!([
{"subdir": "datastore"},
])),
ObjectSchema::new("Directory index.")))
.subdir("datastore", datastore::router());
route
}