(w http.ResponseWriter, r *http.Request)
| 93 | } |
| 94 | |
| 95 | func (a *API) GetInstance(w http.ResponseWriter, r *http.Request) error { |
| 96 | i := getInstance(r.Context()) |
| 97 | if i.BaseConfig != nil { |
| 98 | i.BaseConfig.SMTP.Pass = "" |
| 99 | } |
| 100 | return sendJSON(w, http.StatusOK, i) |
| 101 | } |
| 102 | |
| 103 | func (a *API) UpdateInstance(w http.ResponseWriter, r *http.Request) error { |
| 104 | i := getInstance(r.Context()) |
nothing calls this directly
no test coverage detected