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