mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
406c8aa883
Closes #5116 - adds new CP `absoluteUrl` to PostModel - use `absoluteUrl` in the two places we link previews - swap out some code for es6 loveliness
18 lines
572 B
JavaScript
18 lines
572 B
JavaScript
import getConfig from 'ghost/utils/config-parser';
|
|
|
|
var ConfigInitializer = {
|
|
name: 'config',
|
|
|
|
initialize: function (container, application) {
|
|
var config = getConfig();
|
|
application.register('ghost:config', config, {instantiate: false});
|
|
|
|
application.inject('route', 'config', 'ghost:config');
|
|
application.inject('model:post', 'config', 'ghost:config');
|
|
application.inject('controller', 'config', 'ghost:config');
|
|
application.inject('component', 'config', 'ghost:config');
|
|
}
|
|
};
|
|
|
|
export default ConfigInitializer;
|