added 'config.version' to client-side

This commit is contained in:
Julian Lam
2014-04-30 09:12:09 -04:00
parent e65896351a
commit b049bd466c

View File

@@ -40,6 +40,7 @@ apiController.getConfig = function(req, res, next) {
config.environment = process.env.NODE_ENV;
config.isLoggedIn = !!req.user;
config['cache-buster'] = meta.config['cache-buster'] || '';
config.version = pkg.version;
if (!req.user) {
if (res.locals.isAPI) {