samedi 29 juillet 2017

EmberJS : Customizing adapter host and port

After few tutorial reading on emberJS documents, and couple tryout of emberJS, I currently are stuck at calling custom JAVA API,

Right now I had startup a java server on apache to allow public API call, the host and port are:

host: 'http://127.0.0.1:8080'

i had changed my adaptor followed with the document :

items.js

export default DS.JSONAPIAdapter.extend({
    host: 'http://127.0.0.1:8080'
});

but I still getting the error on chrome inspector

GET http://localhost:4200/items 404 (Not Found)

I am using 2.13 version of emberjs, please guide me what am i go wrong, any helps are appreciated, thanks




Aucun commentaire:

Enregistrer un commentaire