Mirage not intercepting requests
viganella opened this issue · 1 comments
viganella commented
After updating project to latest Ember LTS (3.28 .5) mirage is not intercepting the calls.
Ember data was updated also from 3.24 to 3.28 which seems to affect this.
The request is identified when checking the network in browser with obvious result of 404.
I have ember-cli mirage version 2.4.0. I have also ember-fetch installed, version: 8.1.1.
Happy to provide more info if needed.
In the config.js, I got:
this.post('/cloudTags', (db, request) => { let tag = JSON.parse(request.requestBody).cloudTag; tag.fingerprint = 'asdas-dasdas-asdasd-asdasd'; return db.cloudTags.create(tag); });
mileszim commented
@viganella what did you find? I'm having a similar issue