ember.js - Using current User for Ember Data Queries -


i using ember simple auth authenticate backend. got working. problem how nicely ember-data. have ressources have end points this:

/api/users/:user_id/activities

the problem don't know how inject :user_id route current user.

and there other scenarios when want show data of user , in cases pass different user id.

my routes not helping, since showing activies on dashboard, , therefore don't have user_id in route. in session, or simpleauth stores user.

there's example in ember.simpleauth repo shows how extend authenticated account/current user: https://github.com/simplabs/ember-simple-auth/blob/master/examples/4-authenticated-account.html


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -