Skip to content

Commit

Permalink
Move exports
Browse files Browse the repository at this point in the history
  • Loading branch information
scottcorgan committed Apr 30, 2014
1 parent a44f991 commit bf0b761
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var httpProxy = require('http-proxy');
var proxy = httpProxy.createProxyServer({});
var DEFAULT_TIMEOUT = 3000;

module.exports = function (req, res, next) {
var superstaticProxy = function (req, res, next) {
if (!req.service || !req.service.config) return next();

var config = req.service.config;
Expand All @@ -27,4 +27,6 @@ module.exports = function (req, res, next) {
target: config.origin,
timeout: config.timeout || DEFAULT_TIMEOUT
});
};
};

module.exports = superstaticProxy;

0 comments on commit bf0b761

Please sign in to comment.