Skip to content

Commit 11d9c6e

Browse files
committed
Added new public url
1 parent 22a0cc6 commit 11d9c6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/src/pages/Recommend.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Recommend = (props) => {
66
const [result, setResult] = useState([]);
77

88
useEffect(() => {
9-
Axios.post('https://rezonance11.herokuapp.com/recommend', {
9+
Axios.post('https://18.141.188.196/recommend', {
1010
id: props.location.state.id,
1111
}).then((res) => {
1212
setResult(res.data);

client/src/pages/Search.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Search = () => {
99
const [result, setResult] = useState([]);
1010
const [random, setRandom] = useState([]);
1111

12-
const publicUrl = 'https://rezonance11.herokuapp.com.herokuapp.com/';
12+
const publicUrl = 'https://18.141.188.196/';
1313

1414
const history = useHistory();
1515

@@ -26,7 +26,7 @@ const Search = () => {
2626
if (e.target.value.length >= 4 && e.target.value.length !== 0) {
2727
axios
2828
.post(
29-
'https://rezonance11.herokuapp.com/search',
29+
`${publicUrl}search`,
3030
{
3131
search_param: e.target.value,
3232
},

0 commit comments

Comments
 (0)