1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19:44 +02:00
planka/client/src/api/labels.js

17 lines
400 B
JavaScript
Raw Normal View History

2019-08-31 04:07:25 +05:00
import socket from './socket';
/* Actions */
const createLabel = (boardId, data, headers) =>
socket.post(`/boards/${boardId}/labels`, data, headers);
2019-08-31 04:07:25 +05:00
const updateLabel = (id, data, headers) => socket.patch(`/labels/${id}`, data, headers);
2019-08-31 04:07:25 +05:00
const deleteLabel = (id, headers) => socket.delete(`/labels/${id}`, undefined, headers);
2019-08-31 04:07:25 +05:00
export default {
createLabel,
updateLabel,
deleteLabel,
};