0👍
You lack host, because this.$http.get(‘/resources/’ + id) is u component resources, this not json…
- [Vuejs]-Vue.js – Firebase Auth cannot check correctly error message on Reset Password
- [Vuejs]-VueJS – The app cant locate the route
0👍
It looks like you’re not making the REST call correctly. I think you’re getting routing and REST calls mixed up. What you show above is for routing not making calls to the server.
You’re not calling the server here:
this.$http.get('/resources/' + id)
and doing this is just for the routing:
this.$router.push('/resources/' + id)
Look at using axios for REST calls:
https://github.com/axios/axios
Source:stackexchange.com