MCPcopy Index your code
hub / github.com/cortexproject/cortex / admin

Method admin

pkg/configs/api/api.go:73–84  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

71}
72
73func (a *API) admin(w http.ResponseWriter, r *http.Request) {
74 w.Header().Add("Content-Type", "text/html")
75 fmt.Fprintf(w, `
76<!doctype html>
77<html>
78 <head><title>configs :: configuration service</title></head>
79 <body>
80 <h1>configs :: configuration service</h1>
81 </body>
82</html>
83`)
84}
85
86// RegisterRoutes registers the configs API HTTP routes with the provided Router.
87func (a *API) RegisterRoutes(r *mux.Router) {

Callers

nothing calls this directly

Calls 2

AddMethod · 0.45
HeaderMethod · 0.45

Tested by

no test coverage detected