From cb751e0397c8a4300eba62273d7b6a90f700f06d Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sat, 10 Oct 2020 15:08:13 +0200 Subject: [PATCH] Rename snapshot remove like other API calls (#2113) --- supervisor/api/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/supervisor/api/__init__.py b/supervisor/api/__init__.py index 9575ba705..71f12a202 100644 --- a/supervisor/api/__init__.py +++ b/supervisor/api/__init__.py @@ -326,7 +326,7 @@ class RestAPI(CoreSysAttributes): web.post("/snapshots/new/partial", api_snapshots.snapshot_partial), web.post("/snapshots/new/upload", api_snapshots.upload), web.get("/snapshots/{snapshot}/info", api_snapshots.info), - web.post("/snapshots/{snapshot}/remove", api_snapshots.remove), + web.delete("/snapshots/{snapshot}", api_snapshots.remove), web.post( "/snapshots/{snapshot}/restore/full", api_snapshots.restore_full ), @@ -335,6 +335,8 @@ class RestAPI(CoreSysAttributes): api_snapshots.restore_partial, ), web.get("/snapshots/{snapshot}/download", api_snapshots.download), + # Old, remove at end of 2020 + web.post("/snapshots/{snapshot}/remove", api_snapshots.remove), ] )