Folder structure #398
3 changed files with 9 additions and 5 deletions
2
index.js
2
index.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
10
server.js
10
server.js
|
@ -88,7 +88,11 @@ const startServer = (mysqlConfig) => {
|
|||
});
|
||||
};
|
||||
|
||||
module.exports = (config) => {
|
||||
const { mysqlConfig } = config;
|
||||
return startServer(mysqlConfig);
|
||||
const speech = {
|
||||
start (config) {
|
||||
const { mysqlConfig } = config;
|
||||
startServer(mysqlConfig);
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = speech;
|
||||
|
|
Loading…
Add table
Reference in a new issue