d43f86f3f3
this returns the list of syncjobs with status, as opposed to config/sync (which is just the config) also adds an api call where users can run the job manually under /admin/sync/$ID/run Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
15 lines
330 B
Rust
15 lines
330 B
Rust
use proxmox::api::router::{Router, SubdirMap};
|
|
use proxmox::list_subdirs_api_method;
|
|
|
|
pub mod datastore;
|
|
pub mod sync;
|
|
|
|
const SUBDIRS: SubdirMap = &[
|
|
("datastore", &datastore::ROUTER),
|
|
("sync", &sync::ROUTER)
|
|
];
|
|
|
|
pub const ROUTER: Router = Router::new()
|
|
.get(&list_subdirs_api_method!(SUBDIRS))
|
|
.subdirs(SUBDIRS);
|