removed versioning, keeping old style, fixed mocking
This commit is contained in:
parent
f924123bd9
commit
b2e7ca6ad1
3 changed files with 14 additions and 30 deletions
|
|
@ -11,15 +11,8 @@ var ApiResponse = require('./api_response');
|
|||
var STALE_TICKER = 180000;
|
||||
var STALE_BALANCE = 180000;
|
||||
|
||||
var API_VERSION = 1;
|
||||
|
||||
function prepareApi(req, res) {
|
||||
var targetVersion = parseInt(req.body.version || req.query.version || 0);
|
||||
return ApiResponse.factory({
|
||||
response: res,
|
||||
targetVersion: targetVersion,
|
||||
version: API_VERSION
|
||||
});
|
||||
return ApiResponse.factory(res);
|
||||
}
|
||||
|
||||
var poll = function(req, res) {
|
||||
|
|
@ -112,6 +105,8 @@ exports.init = function(config) {
|
|||
var authMiddleware = config.authMiddleware;
|
||||
var app = config.app;
|
||||
_lamassuConfig.readExchangesConfig(function (err, res) {
|
||||
var idVerifyConfig = res.exchanges.plugins.settings.idology;
|
||||
idVerifyConfig.mock = config.mock;
|
||||
_idVerifier = require('lamassu-idology').factory(res.exchanges.plugins.settings.idology);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue