Pull conf.yml from server

This commit is contained in:
aterox
2022-03-05 01:22:12 -05:00
parent df3e8e6f13
commit aeec449dc7
5 changed files with 32 additions and 3 deletions

10
services/get-conf.js Normal file
View File

@@ -0,0 +1,10 @@
/**
* 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;
};