Commit a55a9abc authored by Jörg Richter's avatar Jörg Richter

REST client: adapt 3 assoc write requests

See dmx-platform/dmx-platform#341
parent fa19bed5
Pipeline #9974 passed with stage
in 1 second
......@@ -140,7 +140,7 @@ export default {
},
createAssoc (assocModel) {
return http.post('/core/association', assocModel).then(response => {
return http.post('/core/assoc', assocModel).then(response => {
const assoc = new Assoc(response.data)
assoc.directives = response.data.directives
return assoc
......@@ -148,13 +148,13 @@ export default {
},
updateAssoc (assocModel) {
return http.put(`/core/association/${assocModel.id}`, assocModel).then(response =>
return http.put(`/core/assoc/${assocModel.id}`, assocModel).then(response =>
response.data
)
},
deleteAssoc (id) {
return http.delete(`/core/association/${id}`).then(response =>
return http.delete(`/core/assoc/${id}`).then(response =>
response.data
)
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment