Feature: Add Board delete function

This commit is contained in:
winkidney
2019-12-07 14:15:05 +08:00
committed by Isaac Bythewood
parent 54487787f5
commit e455821ac6
5 changed files with 136 additions and 44 deletions

View File

@@ -34,6 +34,10 @@ const Board = {
{ pins_to_add: pinIds },
);
},
delete(boardId) {
const url = `${API_PREFIX}boards/${boardId}/`;
return axios.delete(url);
},
};
const Pin = {