mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-16 22:13:32 -06:00
fix API env base URL axios path with .env files
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user