func proxyHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { u, _ := url.Parse("http://127.0.0.1:9000/") proxy := httputil.NewSingleHostReverseProxy(u) proxy.ServeHTTP(w, r) }
func proxyHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { u, _ := url.Parse("http://127.0.0.1:9000/") proxy := httputil.NewSingleHostReverseProxy(u) proxy.ServeHTTP(w, r) }