mirror of
https://github.com/BrenBroZAYT/dashy.git
synced 2026-06-13 16:39:59 +00:00
Pull conf.yml from server
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user