lejard-h / dartnet

Configurable http server in dart
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

path redirection #3

Open lejard-h opened 7 years ago

lejard-h commented 7 years ago

should work as a reverse proxy to be able to do such things

port: 1337
hostname: 0.0.0.0
redirections:
   /api/**: http://localhost:8081
   /**: http://localhost:8080

GET http://localhost:1337/ => http://localhost:8080 GET http://localhost:1337/api => http://localhost:8081 POST http://localhost:1337/api/data => http://localhost:8081/data