MCPcopy
hub / github.com/bettercap/bettercap / showEnv

Method showEnv

modules/api_rest/api_rest_controller.go:162–164  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

160}
161
162func (mod *RestAPI) showEnv(w http.ResponseWriter, r *http.Request) {
163 mod.toJSON(w, mod.Session.Env)
164}
165
166func (mod *RestAPI) showGateway(w http.ResponseWriter, r *http.Request) {
167 mod.toJSON(w, mod.Session.Gateway)

Callers 1

sessionRouteMethod · 0.95

Calls 1

toJSONMethod · 0.95

Tested by

no test coverage detected