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

switch feature-types endpoints to v2 api

parent 80868643
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ const baseUrl = store.state.configuration.VUE_APP_DJANGO_API_BASE;
const featureTypeAPI = {
async deleteFeatureType(featureType_slug) {
const response = await axios.delete(
`${baseUrl}feature-types/${featureType_slug}`
`${baseUrl}v2/feature-types/${featureType_slug}`
);
if (
response.status === 204
......
......@@ -161,7 +161,7 @@ const feature_type = {
//'is_editable': true,
};
let url = `${this.state.configuration.VUE_APP_DJANGO_API_BASE}feature-types/`;
let url = `${this.state.configuration.VUE_APP_DJANGO_API_BASE}v2/feature-types/`;
if (requestType === 'put') url += `${getters.feature_type.slug}/`;
return axios({
url,
......@@ -184,7 +184,7 @@ const feature_type = {
...symbology
};
return axios
.put(`${this.state.configuration.VUE_APP_DJANGO_API_BASE}feature-types/${getters.feature_type.slug}/`, data)
.put(`${this.state.configuration.VUE_APP_DJANGO_API_BASE}v2/feature-types/${getters.feature_type.slug}/`, data)
.then((response) => {
if (response) {
const feature_type_slug = response.data.slug;
......
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