MCPcopy
hub / github.com/gophish/gophish / ServeHTTP

Method ServeHTTP

controllers/api/server.go:92–94  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

90}
91
92func (as *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
93 as.handler.ServeHTTP(w, r)
94}

Callers 15

TestModifyUserFunction · 0.80
TestUnauthorizedGetUserFunction · 0.80
TestUnauthorizedSetRoleFunction · 0.80
TestEnforceViewOnlyFunction · 0.80
TestRequirePermissionFunction · 0.80
TestRequireAPIKeyFunction · 0.80
TestCORSHeadersFunction · 0.80
TestInvalidAPIKeyFunction · 0.80
TestBearerTokenFunction · 0.80

Calls

no outgoing calls

Tested by 14

TestModifyUserFunction · 0.64
TestUnauthorizedGetUserFunction · 0.64
TestUnauthorizedSetRoleFunction · 0.64
TestEnforceViewOnlyFunction · 0.64
TestRequirePermissionFunction · 0.64
TestRequireAPIKeyFunction · 0.64
TestCORSHeadersFunction · 0.64
TestInvalidAPIKeyFunction · 0.64
TestBearerTokenFunction · 0.64