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

switch get feature-types to v2 endpoints

parent f4ddd432
No related branches found
No related tags found
1 merge request!541REDMINE_ISSUE-16246| Ajouter un filtre sur la querystring pour récupérer les signalement modifié depuis une certaine date
......@@ -97,10 +97,10 @@ const feature_type = {
actions: {
GET_PROJECT_FEATURE_TYPES({ commit }, project_slug) {
return axios
.get(`${this.state.configuration.VUE_APP_DJANGO_API_BASE}projects/${project_slug}/feature-types/`)
.get(`${this.state.configuration.VUE_APP_DJANGO_API_BASE}v2/feature-types/?project__slug=${project_slug}`)
.then((response) => {
if (response.status === 200 && response.data) {
commit('SET_FEATURE_TYPES', response.data.feature_types);
commit('SET_FEATURE_TYPES', response.data);
return response;
}
})
......
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