Expose git commit hash to backend info api.

This commit is contained in:
softsimon
2020-05-27 15:18:04 +07:00
parent 4d4b6f4831
commit 8167debbe9
3 changed files with 35 additions and 19 deletions

View File

@@ -1,8 +1,8 @@
import statistics from './api/statistics';
import feeApi from './api/fee-api';
import backendInfo from './api/backend-info';
import mempoolBlocks from './api/mempool-blocks';
import mempool from './api/mempool';
import * as os from 'os';
class Routes {
private cache = {};
@@ -76,9 +76,7 @@ class Routes {
}
public getBackendInfo(req, res) {
res.send({
'hostname': os.hostname(),
});
res.send(backendInfo.getBackendInfo());
}
}