mirror of
https://github.com/pinry/pinry.git
synced 2025-11-17 02:10:39 +01:00
Feature: Add board edit function (board name could be changed)
This commit is contained in:
committed by
Isaac Bythewood
parent
83413d47f6
commit
3323d8d3c6
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user