Update AppRouter.jsx
This commit is contained in:
parent
a956cb26c3
commit
457a45cabb
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ const AppRouter = () => {
|
|||
|
||||
const fetchAPI = async () => {
|
||||
const location = window.location;
|
||||
const uri = `${location?.protocol}//${location?.hostname}${isDev ? ':5172' : ''}/api`;
|
||||
const uri = `http://localhost:5172/api`;
|
||||
const response = await axios.get(uri);
|
||||
console.log(response.data.fruits);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue