Commit dce6119d authored by Filipa Lacerda's avatar Filipa Lacerda

Fixes destroy endpoint

parent c34a47c3
...@@ -29,10 +29,10 @@ export const fetchList = ({ commit }, { repo, page }) => { ...@@ -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()); .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()); .then(res => res.json());
export const setMainEndpoint = ({ commit }, data) => commit(types.SET_MAIN_ENDPOINT, data); export const setMainEndpoint = ({ commit }, data) => commit(types.SET_MAIN_ENDPOINT, 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