sidproxy

1.0.6 • Public • Published

sidproxy

Build Status

Simple Development Proxy and Http console

Getting Started

1. Installation

npm install sidproxy

2. Examples

 
// As Connect Middleware
var middleware = function (connect) {
    return [
        require('sidproxy')(true)
            .resolveProxy([
                {
                    name: 'Server 1',
                    path: 'client/api/path/server1/',
                    host: 'http://server1/'
                },
                {
                    name: 'Server 2',
                    path: 'client/api/path/server2/',
                    host: 'http://server2/'
                }
            ]),
        connect.static(require('path').resolve('.'))
    ];
}
 

Readme

Keywords

Package Sidebar

Install

npm i sidproxy

Weekly Downloads

0

Version

1.0.6

License

MIT

Last publish

Collaborators

  • qrb