i'm trying to use one axios.get instead of typing it mutiple times
this is my script tag
<script>
import axios from "axios";
export default {
data() {
return {
blogs:"",
categories: "",
owners: ""
};
},
async mounted() {
axios.get("http://localhost:4000/api/blogs").then(res => {
console.log(res);
this.blogs = res.data.blogs;
});
axios.get("http://localhost:4000/api/categories").then(res => {
console.log(res);
this.categories = res.data.categories;
});
axios.get("http://localhost:4000/api/owners").then(res => {
console.log(res);
this.owners = res.data.owners;
});
},
};
</script>
please how can i go about this