Skip to content

Commit

Permalink
Merge pull request #14 from Kalkuli/137_Corrigir_Requisicoes_com_Rota…
Browse files Browse the repository at this point in the history
…s_do_Deploy

Solve #137 Corrigir requisições com rotas do deploy
  • Loading branch information
Hargre authored Oct 4, 2018
2 parents 12368ff + 5b7e2b3 commit bf9dc64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Receipt/ReceiptAdder/ReceiptAdder.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ReceiptAdder extends Component {
onConfirmHandler = () => {
let formData = new FormData();
formData.append("file", this.state.file[0]);
axios.post('http://172.31.0.1:5008/api/v1/extract_data', formData, {
axios.post('https://kalkuli-gateway.herokuapp.com/api/v1/extract_data', formData, {
headers: {
'Content-Type': 'multipart/form-data'
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Receipt/ReceiptCompare/ReceiptCompare.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ReceiptCompare extends Component {
}

onConfirmHandler = () => {
axios.post('http://172.31.0.1:5008/api/v1/receipt', {
axios.post('https://kalkuli-gateway.herokuapp.com/api/v1/receipt', {
"receipt": {
...this.state.receipt,
company_id: 1,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Receipt/ReceiptList/ReceiptList.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class ReceiptList extends Component {
}

getAllReceipts() {
Axios.get('http://172.31.0.1:5008/api/v1/receipts')
Axios.get('https://kalkuli-gateway.herokuapp.com/api/v1/receipts')
.then((response) => {
console.log(response);
this.setState({
Expand Down

0 comments on commit bf9dc64

Please sign in to comment.