colouring-montreal/tileserver/config.js

19 lines
346 B
JavaScript
Raw Normal View History

2018-07-30 05:25:34 -04:00
/**
* Load config from config.json
*/
const fs = require('fs');
const path = require('path')
function read(){
const config_path = path.join(__dirname, '..', 'config.json')
return load_json(config_path)
}
function load_json(path){
return JSON.parse(fs.readFileSync(path, 'utf8'));
}
const config = read()
module.exports = config