Перенес файлы в общую папку

This commit is contained in:
Данил 2024-08-14 17:14:38 +03:00
parent b9a45b69b4
commit 7c835e145a
14 changed files with 7 additions and 9 deletions

11
shared/config/src/main.js Normal file
View file

@ -0,0 +1,11 @@
const fs = require('fs');
const yaml = require('yaml');
const config = () => {
if (!fs.existsSync('../config.yaml')) return;
return yaml.parse(fs.readFileSync('../config.yaml', 'utf-8'));
}
module.exports = config;