mirror of
https://github.com/plankanban/planka.git
synced 2025-07-25 16:19:47 +02:00
Initial commit
This commit is contained in:
commit
5ffef61fe7
613 changed files with 91659 additions and 0 deletions
15
client/src/api/labels.js
Executable file
15
client/src/api/labels.js
Executable file
|
@ -0,0 +1,15 @@
|
|||
import socket from './socket';
|
||||
|
||||
/* Actions */
|
||||
|
||||
const createLabel = (boardId, data, headers) => socket.post(`/boards/${boardId}/labels`, data, headers);
|
||||
|
||||
const updateLabel = (id, data, headers) => socket.patch(`/labels/${id}`, data, headers);
|
||||
|
||||
const deleteLabel = (id, headers) => socket.delete(`/labels/${id}`, undefined, headers);
|
||||
|
||||
export default {
|
||||
createLabel,
|
||||
updateLabel,
|
||||
deleteLabel,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue