Pods, pods, everywhere
This commit is contained in:
parent
33f783bc42
commit
e623d52f34
66 changed files with 53 additions and 113 deletions
8
app/pods/users/route.js
Normal file
8
app/pods/users/route.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import Ember from 'ember';
|
||||
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
|
||||
|
||||
export default Ember.Route.extend(AuthenticatedRouteMixin, {
|
||||
model: function() {
|
||||
return this.store.findAll('user');
|
||||
}
|
||||
});
|
3
app/pods/users/template.hbs
Normal file
3
app/pods/users/template.hbs
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{#each user in model}}
|
||||
{{user.email}}<br>
|
||||
{{/each}}
|
Reference in a new issue