I want to make a GET request to my backend application with Ember.js. The problem I'm having is that I have a '/' in the URL for the GET request. The URL I need to make a GET request to looks like this:
http://localhost:9000/alertsettings/settingId
But when I pass in the settingId as a parameter, like this:
this.store.find('alertsettings', {'settingId': settingId})
The resulting URL it tries to make the GET request to looks like this:
http://localhost:9000/alertsettings?settingId=12345
Does anyone know how to make a GET request to my backend application with the URL as described in the first codeblock (so '?settingId=12345' is replaced with '/12345')?
Aucun commentaire:
Enregistrer un commentaire