tape: proxmox-tape - use API instead of direct functions calls

This commit is contained in:
Dietmar Maurer
2021-01-29 10:50:11 +01:00
parent 4470eba551
commit 5243df4712
2 changed files with 49 additions and 63 deletions

View File

@ -1202,6 +1202,11 @@ pub const SUBDIRS: SubdirMap = &sorted!([
&Router::new()
.post(&API_METHOD_ERASE_MEDIA)
),
(
"export-media",
&Router::new()
.put(&API_METHOD_EXPORT_MEDIA)
),
(
"inventory",
&Router::new()
@ -1211,7 +1216,7 @@ pub const SUBDIRS: SubdirMap = &sorted!([
(
"label-media",
&Router::new()
.put(&API_METHOD_LABEL_MEDIA)
.post(&API_METHOD_LABEL_MEDIA)
),
(
"load-media",