View gist:345944c768a0c9292cd64034cff77802
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller\Api\V1; | |
use Cake\Controller\Controller; | |
class AppController extends Controller | |
{ | |
// public $components = [ | |
// 'Acl' => [ | |
// 'className' => 'Acl.Acl' | |
// ] | |
// ]; |