1.0.0 • Published 4 years ago

express-proxy-server v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

express proxy server

NPM version

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.