1.0.3 • Published 6 years ago

gofer-proxy v1.0.3

Weekly downloads
1
License
BSD-3-Clause
Repository
github
Last release
6 years ago

gofer-proxy

A companion to gofer that allows you to expose service endpoints in an express app.

npm install --save gofer-proxy

Features

  • Removes callback parameters from the query to disallow JSONP.
  • Hides server and network errors by passing them down the middleware chain.
  • Handles both gofer 2.x and gofer 3.x clients.
  • Honors all the config & option mappers of the service client.

Usage

var goferProxy = require('gofer-proxy');

// `MyClient` is a class derived from Gofer
var myClient = new MyClient(config);

// `app` is an expressjs application
app.use('/some/prefix', function (req, res, next) {
  goferProxy(myClient, req, res, next);
});
1.0.3

6 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago