light-server icon indicating copy to clipboard operation
light-server copied to clipboard

feat: add pathRewriteRule and pathRewriteTo options

Open hagevvashi opened this issue 5 years ago • 0 comments

This PR enables path-rewriting when proxying by using http-proxy-middleware.

as-is

we cannot proxy below pattern

from http://localhost:8000/api/todos/1 to http://localhost:8001/api/todos/1

to-be

we can proxy below pattern

from http://localhost:8000/api/todos/1 to http://localhost:8001/todos/1

hagevvashi avatar Dec 03 '20 21:12 hagevvashi