For security reasons, we don't allow to make calls to our model user
from our API. So call to http://ift.tt/29BplJy] is not allowed. But we have implemented a method to retrieve the actual user information http://ift.tt/29IBgc7
The problem is that inside EmberJS when I call the server to get the user info, the response is something like that:
{
"result":
{"code":1,"text":"OK"},
"data":{
"id":"57707380d",
"email":"e@e.ee",
"isPremium":"YES",
"type":"user"},
"_links":{
"self":{"href":"/user/me","method":"GET"}}
}
So Ember think that the user id is me
but the response is 57707380d
.
How can I edit the serializer to allow this call?
Aucun commentaire:
Enregistrer un commentaire