Feature: Add board edit function (board name could be changed)

This commit is contained in:
winkidney
2019-12-07 15:10:35 +08:00
committed by Isaac Bythewood
parent 83413d47f6
commit 3323d8d3c6
6 changed files with 133 additions and 14 deletions

View File

@@ -27,6 +27,13 @@ const Board = {
const url = `${API_PREFIX}boards-auto-complete/?submitter__username=${username}`;
return axios.get(url);
},
saveChanges(boardId, fieldsForm) {
const url = `${API_PREFIX}boards/${boardId}/`;
return axios.patch(
url,
fieldsForm,
);
},
addToBoard(boardId, pinIds) {
const url = `${API_PREFIX}boards/${boardId}/`;
return axios.patch(