text: import Cookies from 'js-cookie';
  import Vue from 'vue';
  import VueResource from 'vue-resource';
  
  Vue.use(VueResource);
  
  Vue.http.interceptors.push(function (request, next) {
      request.headers['X-XSRF-TOKEN'] = Cookies.get('XSRF-TOKEN');
      request.url = '/admin/pages/api/' + request.url;
      next();
  });
  