MCPcopy
hub / github.com/1Panel-dev/KubePi / handleAuthToken

Method handleAuthToken

thirdparty/gotty/server/handlers.go:236–240  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

234}
235
236func (server *Server) handleAuthToken(w http.ResponseWriter, r *http.Request) {
237 w.Header().Set("Content-Type", "application/javascript")
238 // @TODO hashing?
239 w.Write([]byte("var gotty_auth_token = '" + server.options.Credential + "';"))
240}
241
242func (server *Server) handleConfig(w http.ResponseWriter, r *http.Request) {
243 w.Header().Set("Content-Type", "application/javascript")

Callers

nothing calls this directly

Calls 2

SetMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected