use proxmox_router::list_subdirs_api_method;
use proxmox_router::{Router, SubdirMap};
+use proxmox_sys::sortable;
pub mod datastore;
pub mod namespace;
pub mod traffic_control;
pub mod verify;
-const SUBDIRS: SubdirMap = &[
+#[sortable]
+const SUBDIRS: SubdirMap = &sorted!([
("datastore", &datastore::ROUTER),
("sync", &sync::ROUTER),
("traffic-control", &traffic_control::ROUTER),
("verify", &verify::ROUTER),
-];
+]);
pub const ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(SUBDIRS))
use proxmox_router::list_subdirs_api_method;
use proxmox_router::{Router, SubdirMap};
+use proxmox_sys::sortable;
pub mod access;
pub mod acme;
pub mod traffic_control;
pub mod verify;
-const SUBDIRS: SubdirMap = &[
+#[sortable]
+const SUBDIRS: SubdirMap = &sorted!([
("access", &access::ROUTER),
("acme", &acme::ROUTER),
("changer", &changer::ROUTER),
("tape-encryption-keys", &tape_encryption_keys::ROUTER),
("traffic-control", &traffic_control::ROUTER),
("verify", &verify::ROUTER),
-];
+]);
pub const ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(SUBDIRS))
}
#[sortable]
-const DATASTORE_SCAN_SUBDIRS: SubdirMap = &[
+const DATASTORE_SCAN_SUBDIRS: SubdirMap = &sorted!([
("groups", &Router::new().get(&API_METHOD_SCAN_REMOTE_GROUPS)),
(
"namespaces",
&Router::new().get(&API_METHOD_SCAN_REMOTE_NAMESPACES),
),
-];
+]);
const DATASTORE_SCAN_ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(DATASTORE_SCAN_SUBDIRS))
//! The Proxmox Backup Server API
+use proxmox_sys::sortable;
+
pub mod access;
pub mod admin;
pub mod backup;
use proxmox_router::{list_subdirs_api_method, Router, SubdirMap};
-const SUBDIRS: SubdirMap = &[
+#[sortable]
+const SUBDIRS: SubdirMap = &sorted!([
("access", &access::ROUTER),
("admin", &admin::ROUTER),
("backup", &backup::ROUTER),
("status", &status::ROUTER),
("tape", &tape::ROUTER),
("version", &version::ROUTER),
-];
+]);
pub const ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(SUBDIRS))