Feature: Add pin delete function

This commit is contained in:
winkidney
2019-12-07 13:32:20 +08:00
committed by Isaac Bythewood
parent 459486932d
commit 58f778f4b4
3 changed files with 41 additions and 9 deletions

View File

@@ -64,6 +64,12 @@ const Pin = {
},
);
},
deleteById(pinId) {
const url = `${API_PREFIX}pins/${pinId}/`;
return axios.delete(
url,
);
},
};