(WORKING) Database interaction working and converted all requires to the ES6 import syntax

This commit is contained in:
plane000
2018-10-22 11:04:25 +01:00
parent 9a37dfc0cf
commit 72d041cef0
9 changed files with 1043 additions and 238 deletions

View File

@@ -1,7 +1,8 @@
const Logger = require('./logger');
const fs = require('fs');
import fs from 'fs';
module.exports = class Config {
import {Logger} from './logger';
export class Config {
constructor(path) {
this.file = './resources/config/config.json';
this.path = [ './resources/', './resources/config' ]