express-proxy-server
v1.0.0
Published
easy way to build proxy middleware for express
Downloads
4
Maintainers
Readme
express proxy server
Easy way to build a proxy middleware for express apps
Install
$ npm install express-proxy-server --save
Example:
As simple as that, proxy URLS starting with '/proxy' to the your api host 'www.yourapi.com':
var proxy = require('express-proxy-server');
var app = require('express')();
app.use('/proxy', proxy('www.yourapi.com'));
This will proxy all the requests to 'www.yourapi.com' with all params and body args
License
The MIT License (MIT). Please see License File for more information.