removed api_response

This commit is contained in:
Josh Harvey 2014-08-07 18:30:29 -04:00
parent fc52975f45
commit 91fe13e9f6
2 changed files with 1 additions and 38 deletions

View file

@ -4,17 +4,12 @@ var _trader;
var _lamassuConfig;
var _idVerifier = null;
var logger = require('./logger');
var ApiResponse = require('./api_response');
// Make sure these are higher than polling interval
// or there will be a lot of errors
var STALE_TICKER = 180000;
var STALE_BALANCE = 180000;
function prepareApi(req, res) {
return ApiResponse.factory(res);
}
var poll = function(req, res) {
var rateRec = _trader.rate();
var balanceRec = _trader.balance;
@ -121,6 +116,6 @@ exports.init = function(config) {
};
function getFingerprint(req) {
return req.connection.getPeerCertificate &&
return req.connection.getPeerCertificate &&
req.connection.getPeerCertificate().fingerprint;
}