mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-19 16:40:12 +01:00
feat(api): add updates API v2
This commit is contained in:
parent
47091761a5
commit
4a922f5a32
4 changed files with 73 additions and 33 deletions
|
|
@ -113,6 +113,8 @@ func (api *API) Handler() http.Handler {
|
|||
// EnableUpdates registers the `updates` endpoints
|
||||
func (api *API) EnableUpdates(f updates.InvokedFunc, updateLock *sync.Mutex) {
|
||||
api.route("/v1/updates").post(updates.PostV1(f, updateLock))
|
||||
api.route("/v2/updates/apply").post(updates.PostV2Apply(f, updateLock))
|
||||
api.route("/v2/updates/check").post(updates.PostV2Check(f, updateLock))
|
||||
}
|
||||
|
||||
// EnableMetrics registers the `metrics` endpoints
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue