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, |
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' | |
// ] | |
// ]; |
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
#!/usr/bin/env bash | |
function ghUpdate() { | |
read -p "Whats the URl of the original repo? | " answer | |
# Add the remote, call it "upstream": | |
echo $answer | |
git remote add upstream $answer | |
# Fetch all the branches of that remote into remote-tracking branches, | |
# such as upstream/master: |
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
//aqui no controller | |
chatsFactory.select().then(function(res){ | |
if (res!=null) { | |
$scope.urldireciona = res.url; | |
// $scope.urldireciona = res["licenca"]; | |
console.log($scope.urldireciona); | |
} else { | |
console.log('No records found'); | |
} |
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; | |
use Cart\Model\Table\Cart; | |
use Cake\Network\Exception\NotFoundException; | |
use correioXml\Correios\Configure; | |
class CartController extends AppController { | |
public function index() |
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; | |
use Cart\Model\Table\Cart; | |
use Cake\Network\Exception\NotFoundException; | |
class CartController extends AppController { | |
public function index() |