api2/tape/changer: reorganize api

add a changer listing here (copied from api2/config/changer)
and put the status and transfer api calls below that

puts the changer scan into the top level tape api
and removes the (now redundant) info from the config api path

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2021-01-25 16:30:57 +01:00
committed by Dietmar Maurer
parent bbf01b644c
commit 740dc9d1d4
4 changed files with 68 additions and 17 deletions

View File

@ -16,6 +16,11 @@ pub const SUBDIRS: SubdirMap = &[
("drive", &drive::ROUTER),
("media", &media::ROUTER),
("restore", &restore::ROUTER),
(
"scan-changers",
&Router::new()
.get(&changer::API_METHOD_SCAN_CHANGERS),
),
];
pub const ROUTER: Router = Router::new()