dashy/services/get-conf.js
2022-03-05 01:22:12 -05:00

11 lines
224 B
JavaScript

/**
* Gets the configuration from conf.yml
*/
const fs = require('fs');
const yaml = require('js-yaml');
module.exports = () => {
const conf = yaml.load(fs.readFileSync('./public/conf.yml', 'utf-8'));
return conf;
};