blob: 2bbf9bc69ffb081ed95dd9f91f31afb1e98a6b69 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import Ember from 'ember';
import {urls} from '../utils/api-urls';
import config from '../config/environment';
export default Ember.Route.extend({
model () {
return Ember.$.getJSON(urls.packagesUrl);
},
setupController(controller, model) {
this._super(controller, model);
controller.set('packages',model);
},
afterModel () {
document.title = config.APP.title;
}
});
|