Skip to content

Instantly share code, notes, and snippets.

Avatar

timeelementopuro

View GitHub Profile
View gist:345944c768a0c9292cd64034cff77802
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,
View gist:5f87cabac63def6d50a83c551e04d235
<?php
namespace App\Controller\Api\V1;
use Cake\Controller\Controller;
class AppController extends Controller
{
// public $components = [
// 'Acl' => [
// 'className' => 'Acl.Acl'
// ]
// ];