proxmox-backup/src/api2/admin.rs
2019-02-17 10:16:33 +01:00

19 lines
397 B
Rust

use crate::api_schema::*;
use crate::api_schema::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
}