Add SSH getHosts api

This commit is contained in:
max furman 2019-10-25 13:47:49 -07:00
parent ded8087042
commit 5616386eed
6 changed files with 98 additions and 12 deletions

View file

@ -257,6 +257,7 @@ func (h *caHandler) Route(r Router) {
r.MethodFunc("POST", "/ssh/config", h.SSHConfig)
r.MethodFunc("POST", "/ssh/config/{type}", h.SSHConfig)
r.MethodFunc("POST", "/ssh/check-host", h.SSHCheckHost)
r.MethodFunc("POST", "/ssh/get-hosts", h.SSHGetHosts)
// For compatibility with old code:
r.MethodFunc("POST", "/re-sign", h.Renew)