get rid of app.exposeConfigToTemplates

This commit is contained in:
barisusakli
2015-08-27 19:22:51 -04:00
parent ef65b711de
commit 48512bff6b
5 changed files with 12 additions and 26 deletions

View File

@@ -70,8 +70,8 @@ apiController.getConfig = function(req, res, next) {
config.environment = process.env.NODE_ENV;
config.loggedIn = !!req.user;
config['cache-buster'] = meta.config['cache-buster'] || '';
config['script-buster'] = meta.js.hash;
config['css-buster'] = meta.css.hash;
config['script-buster'] = meta.js.hash || '';
config['css-buster'] = meta.css.hash || '';
config.requireEmailConfirmation = parseInt(meta.config.requireEmailConfirmation, 10) === 1;
config.topicPostSort = meta.config.topicPostSort || 'oldest_to_newest';
config.categoryTopicSort = meta.config.categoryTopicSort || 'newest_to_oldest';