Hey! For Node Express proxy change request path, I’d recommend checking out `fast-gateway`. It’s a lightweight API gateway built on Express, and it makes path rewriting a breeze. Here’s how you can set it up:
```javascript
const gateway = require('fast-gateway');
gateway({
routes: [{
prefix: '/api/v1',
target: 'http://backend-server',
pathRewrite: { '^/api/v1': '/v2' }
}]
}).start(3000);
```
It’s super clean and handles a lot of the heavy lifting for you. Plus, it’s great for more complex setups.
```javascript
const gateway = require('fast-gateway');
gateway({
routes: [{
prefix: '/api/v1',
target: 'http://backend-server',
pathRewrite: { '^/api/v1': '/v2' }
}]
}).start(3000);
```
It’s super clean and handles a lot of the heavy lifting for you. Plus, it’s great for more complex setups.
