Skip to content

Commit

Permalink
1.removed proxy for githubpage deployment 2.Add full url in detector
Browse files Browse the repository at this point in the history
  • Loading branch information
sudiptob2 committed Mar 8, 2020
1 parent edfc793 commit aaa064a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"homepage": ".",
"name": "agri-front",
"version": "0.1.0",
"private": true,
"homepage": ".",
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.4.1",
Expand Down Expand Up @@ -32,6 +32,6 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"proxy": "https://agrgb.herokuapp.com"
}
}

2 changes: 1 addition & 1 deletion src/components/Detector/Detector.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Detector = () => {
if(getImage) {
const data = new FormData()
data.append("image", getFile)
fetch("/api/detect", {
fetch("https://agrgb-rest.herokuapp.com/api/detect", {
method: 'POST',
body: data
})
Expand Down

0 comments on commit aaa064a

Please sign in to comment.