mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
333beb2198
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.
17 lines
500 B
JavaScript
17 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;
|