Fix HTTP method for /ssh/sign

This commit is contained in:
Mariano Cano 2019-09-30 15:10:23 -07:00 committed by max furman
parent c6a5772356
commit 083e203c46

View file

@ -251,7 +251,7 @@ func (h *caHandler) Route(r Router) {
r.MethodFunc("GET", "/roots", h.Roots)
r.MethodFunc("GET", "/federation", h.Federation)
// SSH CA
r.MethodFunc("GET", "/ssh/sign", h.SignSSH)
r.MethodFunc("POST", "/ssh/sign", h.SignSSH)
r.MethodFunc("GET", "/ssh/keys", h.SSHKeys)
// For compatibility with old code: