MCPcopy
hub / github.com/bettercap/bettercap / showGateway

Method showGateway

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

Source from the content-addressed store, hash-verified

164}
165
166func (mod *RestAPI) showGateway(w http.ResponseWriter, r *http.Request) {
167 mod.toJSON(w, mod.Session.Gateway)
168}
169
170func (mod *RestAPI) showInterface(w http.ResponseWriter, r *http.Request) {
171 mod.toJSON(w, mod.Session.Interface)

Callers 1

sessionRouteMethod · 0.95

Calls 1

toJSONMethod · 0.95

Tested by

no test coverage detected