mirror of
https://github.com/pinry/pinry.git
synced 2025-11-17 02:10:39 +01:00
Feature: Add2Board with board creation works well
This commit is contained in:
committed by
Isaac Bythewood
parent
6cc78423a8
commit
4a33fd806a
@@ -27,6 +27,13 @@ const Board = {
|
||||
const url = `${API_PREFIX}boards-auto-complete/?submitter__username=${username}`;
|
||||
return axios.get(url);
|
||||
},
|
||||
addToBoard(boardId, pinIds) {
|
||||
const url = `${API_PREFIX}boards/${boardId}/`;
|
||||
return axios.patch(
|
||||
url,
|
||||
{ pins_to_add: pinIds },
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
const Pin = {
|
||||
|
||||
Reference in New Issue
Block a user