Variables for the API have been updated

This commit is contained in:
2022-02-16 13:21:35 +01:00
parent 04ad8334ba
commit 519bad5689
10 changed files with 16 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ const moduleSettings = {
},
actions: {
fetchProjects (store) {
return fetch('https://api.kamilcraft.com/projects')
return fetch(process.env.VUE_APP_API_URL + '/projects')
.then(response => response.json())
.then(data => {
store.commit('setProjects', data)
@@ -33,7 +33,7 @@ const moduleSettings = {
})
},
fetchCategories (store) {
return fetch('https://api.kamilcraft.com/categories')
return fetch(process.env.VUE_APP_API_URL + '/categories')
.then(response => response.json())
.then(data => {
store.commit('setCategories', data)