mercredi 13 septembre 2017

How to configure Ember to get data from multiple hosts in same model?

I have an Ember app, whenever it queries, I want it to send to 2 hosts. How do I do this?

Example:

Given 2 backend hosts: hosts=['host1-url', 'host2-url'], when I do this.get('store').findAll('post'),

It calls host1-url/posts and 'host2-url/posts', then concat the results together.




Aucun commentaire:

Enregistrer un commentaire