I'm facing an error POST 404 (Not Found)
as shown in another question that I posted.
I was told that the reason why the axios post
is not working even though axios get
is working for the same address is that I need an endpoint for the POST method, which I haven't set.
I looked through several different pages, but I realized that defining an endpoint for POST method is not necessarily discussed, at least not explicitly using the word "endpoint".
http://blog.vuejoy.com/4-axios/
https://github.com/axios/axios
http://zetcode.com/javascript/axios/
Is it really always necessary to have an endpoint when you try to call a POST method?
If it is, where should I define the endpoint? Within the same vue file where I make the POST call, or should I create another file and define the endpoint there and import it to my main App.vue
file?
If not, why does the axios.post throw an error 404 Not Found
?