This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/initializers/global-variables.js
2015-07-09 16:08:09 -08:00

19 lines
559 B
JavaScript

import Ember from 'ember';
import config from '../config/environment';
var globals = Ember.Object.extend({
genus: config.APP.genus,
apiURL: config.apiURL,
});
export function initialize(container, application) {
application.register('service:globals', globals, {singleton: true});
application.inject('controller', 'globals', 'service:globals');
application.inject('component', 'globals', 'service:globals');
application.inject('adapter', 'globals', 'service:globals');
}
export default {
name: 'global-variables',
initialize: initialize
};