func (s *DevServer) AddProxy(configuration *ProxyArguments) {
	mux := s.HTTPServer.Handler.(*http.ServeMux)

	proxy := NewProxy(configuration)

	for _, route := range configuration.Routes {
		mux.HandleFunc(route, proxy.ServeHTTP)
	}
}
// AddProxy - adds proxy target for the server
adds proxy target for the server
// AddProxy - adds proxy target for the server
func (s *DevServer) AddProxy(configuration *ProxyArguments) {
	mux := s.HTTPServer.Handler.(*http.ServeMux)
	proxy := NewProxy(configuration)
	for _, route := range configuration.Routes {
		mux.HandleFunc(route, proxy.ServeHTTP)
	}
}
func ( s * DevServer ) AddProxy ( configuration * ProxyArguments ) { mux := s . HTTPServer . Handler . ( * http . ServeMux ) proxy := NewProxy ( configuration ) for _ , route := range configuration . Routes { mux . HandleFunc ( route , proxy . ServeHTTP ) } }
adds proxy target for the server
adds proxy target for the server