mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
Point user to POST if they try to GET /-/reload (#2172)
This commit is contained in:
parent
a94a8807f9
commit
79f8514c9c
|
@ -191,6 +191,10 @@ func New(o *Options) *Handler {
|
|||
}
|
||||
|
||||
router.Post("/-/reload", h.reload)
|
||||
router.Get("/-/reload", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusMethodNotAllowed)
|
||||
fmt.Fprintf(w, "This endpoint requires a POST request.\n")
|
||||
})
|
||||
|
||||
router.Get("/debug/*subpath", http.DefaultServeMux.ServeHTTP)
|
||||
router.Post("/debug/*subpath", http.DefaultServeMux.ServeHTTP)
|
||||
|
|
Loading…
Reference in a new issue