simplified config methods in server class

This commit is contained in:
bill bittner 2018-04-17 14:23:03 -07:00
parent 0eb762671c
commit 2847060144
3 changed files with 4 additions and 22 deletions

View file

@ -54,6 +54,4 @@ module.exports = (req, res) => {
// send the rendered page back to the client // send the rendered page back to the client
res.send(renderFullPage(helmet, html, preloadedState)); res.send(renderFullPage(helmet, html, preloadedState));
console.log('hello from spee.ch handlePageRender.jsx');
}; };

View file

@ -73,6 +73,4 @@ module.exports = (req, res) => {
// send the rendered page back to the client // send the rendered page back to the client
res.send(renderFullPage(helmet, html, preloadedState)); res.send(renderFullPage(helmet, html, preloadedState));
}); });
console.log('hello from spee.ch handleShowRender.jsx');
}; };

View file

@ -15,24 +15,10 @@ const siteConfig = require('siteConfig.js');
const slackConfig = require('slackConfig.js'); const slackConfig = require('slackConfig.js');
function Server () { function Server () {
this.configureLogger = (userConfig) => { this.configureLogger = loggerConfig.update(userConfig);
loggerConfig.update(userConfig); this.configureMysql = mysqlConfig.update(userConfig);
}; this.configureSite = siteConfig.update(userConfig);
this.configureMysql = (userConfig) => { this.configureSlack = slackConfig.update(userConfig);
mysqlConfig.update(userConfig);
};
this.configureSite = (userConfig) => {
siteConfig.update(userConfig);
};
this.configureSlack = (userConfig) => {
slackConfig.update(userConfig);
};
this.configureModels = () => {
logger.debug('here is where you could add/overwrite the default models')
};
this.configureRoutes = () => {
logger.debug('here is where you could add/overwrite the default routes')
};
this.createApp = () => { this.createApp = () => {
// create an Express application // create an Express application
const app = express(); const app = express();