Skip to content

Commit

Permalink
add deprecation notice to expressProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneWeird committed May 31, 2015
1 parent a23ae4f commit 7075cf7
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,13 @@
"use strict";

const async = require("async");
const util = require("util");

var expressProxy = function(remote, serviceName, signal) {
var expressProxy = util.deprecate(function(remote, serviceName, signal) {

/* expressProxy returns an express route handler for that combines:
*
* - post body vars (see express body-parser)
* - router matches ie /:id
* - query params: ?foo=bar
*
* into an object and passes them on to an HT service remote call,
* the result of which will be returned as a json response.
*/
/*******************************************************************************************************
expressProxy has been deprecated, please use https://github.com/hudson-taylor/ht-express instead.
*******************************************************************************************************/

return (function() {

Expand All @@ -33,7 +28,7 @@ var expressProxy = function(remote, serviceName, signal) {

})();

};
}, "expressProxy is deprecated as of 5.3.1 - please use https://github.com/hudson-taylor/ht-express instead.");

var merge = function merge() {

Expand Down

0 comments on commit 7075cf7

Please sign in to comment.