Просмотр исходного кода

Add /re-sign endpoint for compatibility with old code.

Mariano Cano 8 лет назад
Родитель
Сommit
f938ab113b
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      api/api.go

+ 2 - 0
api/api.go

@@ -258,6 +258,8 @@ func (h *caHandler) Route(r Router) {
 	r.MethodFunc("GET", "/provisioners", h.Provisioners)
 	r.MethodFunc("GET", "/provisioners", h.Provisioners)
 	r.MethodFunc("GET", "/provisioners/{kid}/encrypted-key", h.ProvisionerKey)
 	r.MethodFunc("GET", "/provisioners/{kid}/encrypted-key", h.ProvisionerKey)
 	r.MethodFunc("GET", "/provisioners/jwk-set-by-issuer", h.JWKSetByIssuer)
 	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.
 // Health is an HTTP handler that returns the status of the server.