changed server to use exports

This commit is contained in:
bill bittner 2018-03-08 15:01:29 -08:00
parent 8706b07634
commit 936a431c14
3 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -88,15 +88,15 @@ const startServer = (mysqlConfig) => {
});
};
module.exports = {
exports = {
hello () {
console.log('hello world');
},
speak (something) {
console.log(something);
},
// start (config) {
// const { mysqlConfig } = config;
// startServer(mysqlConfig);
// },
start (config) {
const { mysqlConfig } = config;
startServer(mysqlConfig);
},
};