Fixes destroy endpoint

This commit is contained in:
Filipa Lacerda 2017-09-26 12:05:12 +01:00
parent c34a47c39a
commit dce6119de0
No known key found for this signature in database
GPG key ID: 9CA3FDE4D1E2F1C8

View file

@ -29,10 +29,10 @@ export const fetchList = ({ commit }, { repo, page }) => {
});
};
export const deleteRepo = ({ commit }, repo) => Vue.http.delete(repo.path)
export const deleteRepo = ({ commit }, repo) => Vue.http.delete(repo.destroyPath)
.then(res => res.json());
export const deleteRegistry = ({ commit }, image) => Vue.http.delete(image.path)
export const deleteRegistry = ({ commit }, image) => Vue.http.delete(image.destroyPath)
.then(res => res.json());
export const setMainEndpoint = ({ commit }, data) => commit(types.SET_MAIN_ENDPOINT, data);