jeudi 19 octobre 2017

Mirage asking for modelid

So I am trying to setup mirage to use faker and I have done that but I am getting the following error:

assert.js:35 Mirage: The route handler for /services/1 is trying to access the :serviceId model, but that model doesn't exist. Create it using 'ember g mirage-model :service-id'.

Here is my mirage/config

export default function() {
  this.get('/services/categories');
  this.get('/services/:service_id');
}

Let me know if you need to see more data




Aucun commentaire:

Enregistrer un commentaire