fix API env base URL axios path with .env files

This commit is contained in:
Xevion
2020-08-10 07:20:10 -05:00
parent 842938cbb3
commit 00b4163da1
13 changed files with 14 additions and 12 deletions

View File

@@ -151,7 +151,7 @@ export default {
},
methods: {
getSeasons() {
const path = `http://${process.env.VUE_APP_HOST}:${process.env.VUE_APP_FLASK_PORT}/api/episodes/`;
const path = `${process.env.VUE_APP_BASE_APP_URL}/api/episodes/`;
axios.get(path)
.then((res) => {
this.seasons = res.data;