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/pods/species/show/route.js
2015-07-06 11:02:41 -08:00

14 lines
401 B
JavaScript

import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
model: function(params) {
return Ember.RSVP.hash({
species: this.store.find('species', params.species_id),
});
},
setupController: function(controller, model) {
controller.setProperties(model);
},
});