text: const { default: Axios } = require("axios");
  
  var app = new Vue({
      el: '#root',
  
      data: {
          posts: [],
      },
  
      mounted() {
          axios.get('http://127.0.0.1:8000/api/posts')
          .then(result => {
  
              this.posts = result.data.post;
              console.log(this.posts)
          });
      }
  });