simplified config methods in server class
This commit is contained in:
parent
0eb762671c
commit
2847060144
3 changed files with 4 additions and 22 deletions
|
@ -54,6 +54,4 @@ module.exports = (req, res) => {
|
|||
|
||||
// send the rendered page back to the client
|
||||
res.send(renderFullPage(helmet, html, preloadedState));
|
||||
|
||||
console.log('hello from spee.ch handlePageRender.jsx');
|
||||
};
|
||||
|
|
|
@ -73,6 +73,4 @@ module.exports = (req, res) => {
|
|||
// send the rendered page back to the client
|
||||
res.send(renderFullPage(helmet, html, preloadedState));
|
||||
});
|
||||
|
||||
console.log('hello from spee.ch handleShowRender.jsx');
|
||||
};
|
||||
|
|
|
@ -15,24 +15,10 @@ const siteConfig = require('siteConfig.js');
|
|||
const slackConfig = require('slackConfig.js');
|
||||
|
||||
function Server () {
|
||||
this.configureLogger = (userConfig) => {
|
||||
loggerConfig.update(userConfig);
|
||||
};
|
||||
this.configureMysql = (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.configureLogger = loggerConfig.update(userConfig);
|
||||
this.configureMysql = mysqlConfig.update(userConfig);
|
||||
this.configureSite = siteConfig.update(userConfig);
|
||||
this.configureSlack = slackConfig.update(userConfig);
|
||||
this.createApp = () => {
|
||||
// create an Express application
|
||||
const app = express();
|
||||
|
|
Loading…
Reference in a new issue