Answer the question
In order to leave comments, you need to log in
How to connect server to nuxt?
I make a post request:
<script>
import axios from 'axios'
methods: {
news() {
axios.post("http://x.xx.x.xx./api/news",{
}).then((res) => {
console.log(res);
return {res}
})
}
},
</script>
http://x.xx.x.xx./.
it should be so /api/news.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question