proxmox-backup/src/api2/admin.rs

19 lines
389 B
Rust
Raw Normal View History

2019-01-04 09:32:27 +00:00
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
}