src/api2/admin/datastore/backup.rs: suse POST for finish() api

This commit is contained in:
Dietmar Maurer 2019-05-22 13:04:58 +02:00
parent de6742c04f
commit a55fcd740f

View File

@ -160,7 +160,7 @@ fn backup_api() -> Router {
) )
.subdir( .subdir(
"finish", Router::new() "finish", Router::new()
.get( .post(
ApiMethod::new( ApiMethod::new(
finish_backup, finish_backup,
ObjectSchema::new("Mark backup as finished.") ObjectSchema::new("Mark backup as finished.")