Revamping configuration file.

fixes #141
This commit is contained in:
softsimon
2020-10-19 11:57:02 +07:00
parent 0abe62128e
commit 45efb604c1
17 changed files with 218 additions and 146 deletions

View File

@@ -1,4 +1,4 @@
const config = require('../mempool-config.json');
import config from './config';
import { Request, Response } from 'express';
import statistics from './api/statistics';
import feeApi from './api/fee-api';
@@ -16,7 +16,7 @@ class Routes {
private cache = {};
constructor() {
if (!config.DB_DISABLED) {
if (!config.DATABASE.ENABLED) {
this.createCache();
setInterval(this.createCache.bind(this), 600000);
}