Skip to content

Commit

Permalink
Update App.js
Browse files Browse the repository at this point in the history
  • Loading branch information
phyeony committed Dec 8, 2022
1 parent 6f63924 commit 406109e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function App() {
const MAX_NUM = 13025
const BACKEND_DOMAIN = process.env.REACT_APP_BACKEND_DOMAIN ?? "localhost"
const BACKEND_PORT = process.env.REACT_APP_BACKEND_PORT ?? "8000"
const HTTPS = process.env.REACT_APP_HTTPS ?? "http"

const [airbnbList, setAirbnbList] = useState([])
const [state, setState] = useState({
Expand Down Expand Up @@ -86,7 +87,7 @@ function App() {
}
}
try {
const res = await fetch(`http://${BACKEND_DOMAIN}:${BACKEND_PORT}/api/airbnb_list`, {
const res = await fetch(`${HTTPS}://${BACKEND_DOMAIN}:${BACKEND_PORT}/api/airbnb_list`, {
method: 'POST',
headers: {
'Accept': 'application/json',
Expand Down

0 comments on commit 406109e

Please sign in to comment.