mirror of
https://github.com/plankanban/planka.git
synced 2025-07-21 14:19:44 +02:00
16 lines
398 B
JavaScript
16 lines
398 B
JavaScript
|
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,
|
||
|
};
|