MCPcopy Create free account
hub / github.com/netlify/gotrue / GetInstance

Method GetInstance

api/instance.go:95–101  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

93}
94
95func (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
103func (a *API) UpdateInstance(w http.ResponseWriter, r *http.Request) error {
104 i := getInstance(r.Context())

Callers

nothing calls this directly

Calls 2

getInstanceFunction · 0.85
sendJSONFunction · 0.85

Tested by

no test coverage detected