Skip to content
Snippets Groups Projects
Commit 330267e6 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

update api endpoint projet to projects for utilisateurs and disabled add feature at feature fetch

parent 35db3aec
No related branches found
No related tags found
No related merge requests found
......@@ -45,13 +45,13 @@ const feature = {
},
actions: {
GET_PROJECT_FEATURES({ commit, dispatch }, project_slug) {
GET_PROJECT_FEATURES({ commit, /* dispatch */ }, project_slug) {
axios
.get(`${DJANGO_API_BASE}projects/${project_slug}/feature`)
.then((response) => {
const features = response.data.features;
commit("SET_FEATURES", features);
dispatch("map/ADD_FEATURES", null, { root: true });
//dispatch("map/ADD_FEATURES", null, { root: true }); //todo: should check if map was initiated
})
.catch((error) => {
throw error;
......
......@@ -103,7 +103,7 @@ export default {
async fetchMembers() {
return axios
.get(
`${process.env.VUE_APP_DJANGO_API_BASE}projet/${this.$route.params.slug}/utilisateurs`
`${process.env.VUE_APP_DJANGO_API_BASE}projects/${this.$route.params.slug}/utilisateurs`
)
.then((response) => response.data.members)
.catch((error) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment