I have multiple endpoints for fetching clients.
In my '/clients' page I want to use 'clients/clients' path to fetch clients I have a subfolder "clients" in my models folder and model client.js in it. I also have usual client.js model in models folder, but it is used for another endpoint.
So the question is: When I do
this.store.findAll('clients/client')
It fetches clients from 'clients/clients' endpoint but doesn't use model "clients.js" for 'clients' subfolder. How can I specify what model ember should use?
Aucun commentaire:
Enregistrer un commentaire