use environment var for api url

mic_level
Matt Huntington 3 years ago
parent 6bf1043800
commit 170c4f377d

@ -8,7 +8,7 @@
} }
}, },
mounted() { mounted() {
axios.get('http://localhost:18080/summary').then((response)=>{ axios.get(import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'summary').then((response)=>{
console.log(response.data); console.log(response.data);
this.categories = response.data this.categories = response.data
}) })

Loading…
Cancel
Save