api2/tape/drive: reorganize drive api

similar to the changers, create a listing at /tape/drive and put
the specific api calls below that

move the scan api call up one level

remove the status info from the config listing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2021-01-27 11:33:49 +01:00
committed by Dietmar Maurer
parent d8792b88ef
commit 5fdaecf6f4
4 changed files with 63 additions and 34 deletions

View File

@ -54,6 +54,11 @@ const SUBDIRS: SubdirMap = &[
&Router::new()
.get(&API_METHOD_SCAN_CHANGERS),
),
(
"scan-drives",
&Router::new()
.get(&drive::API_METHOD_SCAN_DRIVES),
),
];
pub const ROUTER: Router = Router::new()