I'm trying to use a JSON files in my project.
But Ember opens an error page. I mean a 404 page. In router
- this.route('error')
$.getScript('/myfolder/file.json').then(function (data) {
});
I store a files in /public/assets/myfolder
.
I get an error page when I call /assets/myfolder
or /myfolder
. But my folder is in dist
and public
folders
How can I fix it?
Thank you.
Aucun commentaire:
Enregistrer un commentaire