2025-05-10 02:09:06 +02:00
|
|
|
/*!
|
|
|
|
* Copyright (c) 2024 PLANKA Software GmbH
|
|
|
|
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
|
|
|
|
*/
|
|
|
|
|
2019-08-31 04:07:25 +05:00
|
|
|
import socket from './socket';
|
|
|
|
|
|
|
|
/* Actions */
|
|
|
|
|
2022-08-09 18:03:21 +02:00
|
|
|
const createCardLabel = (cardId, data, headers) =>
|
2025-05-10 02:09:06 +02:00
|
|
|
socket.post(`/cards/${cardId}/card-labels`, data, headers);
|
2019-08-31 04:07:25 +05:00
|
|
|
|
2022-08-09 18:03:21 +02:00
|
|
|
const deleteCardLabel = (cardId, labelId, headers) =>
|
2025-05-10 02:09:06 +02:00
|
|
|
socket.delete(`/cards/${cardId}/card-labels/labelId:${labelId}`, undefined, headers);
|
2019-08-31 04:07:25 +05:00
|
|
|
|
|
|
|
export default {
|
|
|
|
createCardLabel,
|
|
|
|
deleteCardLabel,
|
|
|
|
};
|