mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Deprecate routeless proxy test
Routeless proxy allowed no HTTP path to be given when a Header X-Function: name was given. This has been deprecated - I am unaware of any usage of the feature. Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
5e0569f75a
commit
daa79aef75
@ -115,8 +115,6 @@ func main() {
|
||||
|
||||
r.PathPrefix("/ui/").Handler(http.StripPrefix("/ui", fsCORS)).Methods(http.MethodGet)
|
||||
|
||||
r.HandleFunc("/", faasHandlers.RoutelessProxy).Methods(http.MethodPost)
|
||||
|
||||
metricsHandler := metrics.PrometheusHandler()
|
||||
r.Handle("/metrics", metricsHandler)
|
||||
r.Handle("/", http.RedirectHandler("/ui/", http.StatusMovedPermanently)).Methods(http.MethodGet)
|
||||
|
Reference in New Issue
Block a user