mirror of
https://gitlab.silvrtree.co.uk/martind2000/censis-archive.git
synced 2025-01-31 04:30:14 +00:00
18 lines
423 B
JavaScript
18 lines
423 B
JavaScript
|
import Ember from 'ember';
|
||
|
|
||
|
const { inject: { service } } = Ember;
|
||
|
|
||
|
export default Ember.Route.extend({
|
||
|
sessionAccount: service('session-account'),
|
||
|
beforeModel() {
|
||
|
'use strict';
|
||
|
const cid = this.get('sessionAccount.account.memberof');
|
||
|
this.store.query('page', { filter: { cid: cid } }).then(function(d) {
|
||
|
return d;
|
||
|
});
|
||
|
},
|
||
|
model: function() {
|
||
|
return this.store.findAll('page');
|
||
|
}
|
||
|
});
|