Skip to content

Instantly share code, notes, and snippets.

View timeelementopuro's full-sized avatar

timeelementopuro

View GitHub Profile
import axios from 'axios'
// export default ({ Vue }) => {
// Vue.prototype.$axios = axios
// }
export default ({ Vue }) => {
Vue.prototype.$axios = axios.create({
baseURL: 'http://localhost:8765/',
withCredentials: true,
<?php
namespace App\Controller\Api\V1;
use Cake\Controller\Controller;
class AppController extends Controller
{
// public $components = [
// 'Acl' => [
// 'className' => 'Acl.Acl'
// ]
// ];