Open johndevs opened 8 years ago
I have the fallowing instance configured:
this.store = new Amygdala({ 'config' : { 'apiUrl' : 'http://localhost:8081', 'idAttribute': 'url', }, 'schema' : { 'plans' : { 'url' : '/plans/' } } });
this.store.get('plans', {'url': 'myid'}) resolves correctly to http://localhost:8081/plans/myid
this.store.get('plans', {'url': 'myid'})
but
this.store.update('plans', {'url':'myid', data:data}) resolves to http://localhost:8080/myid
this.store.update('plans', {'url':'myid', data:data})
The webserver serving the app is running on http://localhost:8080 while a I have the REST API on http://localhost:8081
I have the fallowing instance configured:
this.store.get('plans', {'url': 'myid'})
resolves correctly to http://localhost:8081/plans/myidbut
this.store.update('plans', {'url':'myid', data:data})
resolves to http://localhost:8080/myidThe webserver serving the app is running on http://localhost:8080 while a I have the REST API on http://localhost:8081