Merge branch 'Development' of https://github.com/mrosseel/bisq-exchange into mrosseel-Development

This commit is contained in:
Manfred Karrer 2017-11-16 09:58:17 -05:00
commit e48cbd9656
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -68,6 +68,7 @@ public class ProviderMain {
handleGetAllMarketPrices(args);
handleGetFees();
handleGetVersion();
}
private static void handleGetAllMarketPrices(String[] args) throws IOException, NoSuchAlgorithmException, InvalidKeyException {
@ -92,4 +93,12 @@ public class ProviderMain {
return feeRequestService.getJson();
});
}
private static void handleGetVersion() throws IOException {
FeeRequestService feeRequestService = new FeeRequestService();
get("/getVersion", (req, res) -> {
log.info("Incoming getVersion request from: " + req.userAgent());
return ProviderVersion.VERSION;
});
}
}