From f938ab113bb20ab31c9012fc9c92c141fab8cb56 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Wed, 24 Oct 2018 16:31:28 -0700 Subject: [PATCH] Add /re-sign endpoint for compatibility with old code. --- api/api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/api.go b/api/api.go index 6c8b2810..438f97bf 100644 --- a/api/api.go +++ b/api/api.go @@ -258,6 +258,8 @@ func (h *caHandler) Route(r Router) { r.MethodFunc("GET", "/provisioners", h.Provisioners) r.MethodFunc("GET", "/provisioners/{kid}/encrypted-key", h.ProvisionerKey) r.MethodFunc("GET", "/provisioners/jwk-set-by-issuer", h.JWKSetByIssuer) + // For compatibility with old code: + r.MethodFunc("POST", "/re-sign", h.Renew) } // Health is an HTTP handler that returns the status of the server.