Ghost/core/client/initializers/ghost-config.js
Hannah Wolfe a11fd67ec9 Add fileStorage config to frontend
closes #2956

- adds fileStorage to config passed to ember, and then grabs it in the relevant places.
2014-06-23 23:33:14 +01:00

14 lines
437 B
JavaScript

var ConfigInitializer = {
name: 'config',
initialize: function (container, application) {
application.register('ghost:config', application.get('config'), {instantiate: false});
application.inject('route', 'config', 'ghost:config');
application.inject('controller', 'config', 'ghost:config');
application.inject('component', 'config', 'ghost:config');
}
};
export default ConfigInitializer;