mardi 24 juillet 2018

How to Simulate a 404 Not Found Api endpoint with EmberJs Mirage

In config.js of Mirage. For example:

this.get('path/to/endpoint', (schema, request) => {
  return '404';
});

How should the returned response be formatted so that Mirage treats it like a real 404?




Aucun commentaire:

Enregistrer un commentaire