Update AppRouter.jsx

This commit is contained in:
Matt DiMeglio 2025-06-14 13:20:21 -04:00
parent 457a45cabb
commit 0855f01913

View file

@ -63,7 +63,7 @@ const AppRouter = () => {
const fetchAPI = async () => {
const location = window.location;
const uri = `http://localhost:5172/api`;
const uri = `${location?.protocol}//${location?.hostname}:5172/api`;
const response = await axios.get(uri);
console.log(response.data.fruits);
};