diff options
author | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-01-25 01:06:54 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-01-26 01:17:24 +0100 |
commit | df8455a97090cb06e26a881162b86887c4dfcca5 (patch) | |
tree | 3e1b9a66736a693f2da9f5cdbb581620e77d7687 /pkg/instance/instance.go | |
parent | a8df88efdb0adf014e524c813193228d06e9ac6a (diff) |
instance: Use the new tree-head endpoints
Diffstat (limited to 'pkg/instance/instance.go')
-rw-r--r-- | pkg/instance/instance.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 9f71aa3..bbd6cde 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -42,8 +42,7 @@ func (i *Instance) Handlers() []Handler { return []Handler{ Handler{Instance: i, Handler: addLeaf, Endpoint: types.EndpointAddLeaf, Method: http.MethodPost}, Handler{Instance: i, Handler: addCosignature, Endpoint: types.EndpointAddCosignature, Method: http.MethodPost}, - Handler{Instance: i, Handler: getTreeHeadLatest, Endpoint: types.EndpointGetTreeHeadLatest, Method: http.MethodGet}, - Handler{Instance: i, Handler: getTreeHeadToSign, Endpoint: types.EndpointGetTreeHeadToSign, Method: http.MethodGet}, + Handler{Instance: i, Handler: getTreeHeadToCosign, Endpoint: types.EndpointGetTreeHeadToSign, Method: http.MethodGet}, // XXX: ToCosign Handler{Instance: i, Handler: getTreeHeadCosigned, Endpoint: types.EndpointGetTreeHeadCosigned, Method: http.MethodGet}, Handler{Instance: i, Handler: getCheckpoint, Endpoint: types.Endpoint("get-checkpoint"), Method: http.MethodGet}, Handler{Instance: i, Handler: getConsistencyProof, Endpoint: types.EndpointGetConsistencyProof, Method: http.MethodPost}, |