mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 03:26:32 +00:00
Rename snapshot remove like other API calls (#2113)
This commit is contained in:
parent
ac457c1c28
commit
cb751e0397
@ -326,7 +326,7 @@ class RestAPI(CoreSysAttributes):
|
|||||||
web.post("/snapshots/new/partial", api_snapshots.snapshot_partial),
|
web.post("/snapshots/new/partial", api_snapshots.snapshot_partial),
|
||||||
web.post("/snapshots/new/upload", api_snapshots.upload),
|
web.post("/snapshots/new/upload", api_snapshots.upload),
|
||||||
web.get("/snapshots/{snapshot}/info", api_snapshots.info),
|
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(
|
web.post(
|
||||||
"/snapshots/{snapshot}/restore/full", api_snapshots.restore_full
|
"/snapshots/{snapshot}/restore/full", api_snapshots.restore_full
|
||||||
),
|
),
|
||||||
@ -335,6 +335,8 @@ class RestAPI(CoreSysAttributes):
|
|||||||
api_snapshots.restore_partial,
|
api_snapshots.restore_partial,
|
||||||
),
|
),
|
||||||
web.get("/snapshots/{snapshot}/download", api_snapshots.download),
|
web.get("/snapshots/{snapshot}/download", api_snapshots.download),
|
||||||
|
# Old, remove at end of 2020
|
||||||
|
web.post("/snapshots/{snapshot}/remove", api_snapshots.remove),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user