0
I have a route where the person can select items from a list for their account. But logging into that route sends a request GET
to the server. How could prevent this from happening?
Here is an excerpt from the code. I am using Emberjs 2x
import Ember from 'ember';
export default Ember.Route.extend({
searchPlaces: Ember.inject.service(),
model() {
return this.store.findAll('user');
},
afterModel(model) {
let token = model.get('token');
let places = model.get('places');
this.set('places', places);
this.set('token', token);
}
});