@Alessio_Varalta wrote:
Hi, I have created a model with name criteria
export default DS.Model.extend({ age:DS.attr(), info:DS.attr(), demand: DS.belongsTo('demand'), });
name of file criteria.js. but when i make in a router for example
return this.store.queryRecord('criteria', {filter: {demand: this.get('auth.currentUser.demand.id')}});
ember call mirage with the url GET /criteria?filter%5Bdemand%5D=1 and not with the name criterias GET /criteria?filter%5Bdemand%5D=1
why?
So I have a problem because in the config file i can not use criterias but criteria and is a error
Posts: 2
Participants: 2