Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

update() does not use apiUrl and schema url #19

Open
johndevs opened this issue Nov 25, 2015 · 0 comments
Open

update() does not use apiUrl and schema url #19

johndevs opened this issue Nov 25, 2015 · 0 comments

Comments

@johndevs
Copy link

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

but

this.store.update('plans', {'url':'myid', data:data}) resolves to http://localhost:8080/myid

The webserver serving the app is running on http://localhost:8080 while a I have the REST API on http://localhost:8081

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant