mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Previously, the exports were somewhat random with some files declaring local variables then immediately exporting them, and others simply doing the work needed in the export itself.
16 lines
500 B
JavaScript
16 lines
500 B
JavaScript
import ghostPaths from 'ghost/utils/ghost-paths';
|
|
|
|
var ghostPathsInitializer = {
|
|
name: 'ghost-paths',
|
|
after: 'store',
|
|
|
|
initialize: function (container) {
|
|
container.register('ghost:paths', ghostPaths(), {instantiate: false});
|
|
|
|
container.injection('route', 'ghostPaths', 'ghost:paths');
|
|
container.injection('model', 'ghostPaths', 'ghost:paths');
|
|
container.injection('controller', 'ghostPaths', 'ghost:paths');
|
|
}
|
|
};
|
|
|
|
export default ghostPathsInitializer;
|