tape: proxmox-tape - use api for erase-media and rewind

This commit is contained in:
Dietmar Maurer
2021-01-28 16:36:10 +01:00
parent 1a0eb86344
commit eb1dfb02b5
2 changed files with 27 additions and 25 deletions

View File

@ -1181,7 +1181,7 @@ pub const SUBDIRS: SubdirMap = &sorted!([
(
"erase-media",
&Router::new()
.put(&API_METHOD_ERASE_MEDIA)
.post(&API_METHOD_ERASE_MEDIA)
),
(
"inventory",
@ -1222,7 +1222,7 @@ pub const SUBDIRS: SubdirMap = &sorted!([
(
"rewind",
&Router::new()
.put(&API_METHOD_REWIND)
.post(&API_METHOD_REWIND)
),
(
"status",