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

View File

@@ -14,11 +14,11 @@ import {
} from '@/utils/defaults';
import ErrorHandler from '@/utils/ErrorHandler';
import { applyItemId } from '@/utils/SectionHelpers';
import conf from '../../public/conf.yml';
import $store from '../store';
export default class ConfigAccumulator {
constructor() {
this.conf = conf;
this.conf = $store.state.remoteConfig;
}
/* App Config */

View File

@@ -42,6 +42,7 @@ module.exports = {
statusCheck: '/status-check',
save: '/config-manager/save',
rebuild: '/config-manager/rebuild',
getConf: '/config-manager/get',
systemInfo: '/system-info',
corsProxy: '/cors-proxy',
},