import Ember from 'ember';
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';

import ENV from 'experimenter/config/environment';

export default Ember.Route.extend(AuthenticatedRouteMixin, {
    model() {
        return this.store.find('namespace', ENV.JAMDB.namespace);
    }
});

import Ember from 'ember';
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';

export default Ember.Route.extend(AuthenticatedRouteMixin, {
    namespaceConfig: Ember.inject.service(),
    model() {
        return this.store.find('namespace', this.get('namespaceConfig').get('namespace'));
    }
});

Remove old reference to ENV.JAMBD
Remove old reference to ENV.JAMBD
