I would like to create a proxy server for my angular-dart applications that redirects me to index.html
whenever I refresh the browser and the route is different from root. For example, if the url is: http://localhost:8080/users
and I hit refresh button, I would like to be redirected to http://localhost:8080
or http://localhost:8080/index.html
.
Furthermore it will be highly useful to be able to connect to a third party server application. In other words, I would like to run pub serve
and a third party server (python, php or java) running on localhost:9000
To do that we could use next code: