How to make a GET request


#1

I’m truing to implement Ember Simple Auth and still stuck with such a simple trick as how to make a GET request to Rails backend.

I get a token after being authenticated via another API and would like to make another request to extract token values, assign them to the corresponding User attributes and pass in them back to Ember.

Any ideas ? You can find the code source: Ember app, Rails app.

Thank you


#2

There are many ways to achieve this. You can use jQuery (https://github.com/ember-cli/ember-ajax). You can also use an Ember Addon called ember-ajax (https://github.com/ember-cli/ember-ajax).


#3

OK, thank you, I’ll take a try.