I've been following the SuperRentals Ember.JS tutorial and have also cloned the finished product from here.
I'm struggling to identify where we define that we retrieve data from rentals.json in <app_dir>/public/api:
XXX@XXXX-XX:~/super-rentals/public/api$ ls
rentals rentals.json
If I change rentals.json to another name, the site stops loading entirely implying some configuration or code requires changing to reflect this.
However, when I grep for "rentals" recursively in <app_dir>/app none of the references returned appear related.
Is this naming picked up by convention, or is it explicitly defined somewhere in the application?
Aucun commentaire:
Enregistrer un commentaire