Just followed the documentation but every time I navigate or call to the url, it returns 404 for me
// app/mirage/config.js
export default function() {
this.get('/api/users', function() {
return {
users: [
{id: 1, name: 'Zelda'},
{id: 2, name: 'Link'},
{id: 3, name: 'Epona'},
]
}
});
}
Uncaught UnrecognizedURLError: /api/users
Thanks for your help.
Aucun commentaire:
Enregistrer un commentaire