mirror of
https://github.com/plankanban/planka.git
synced 2025-12-29 01:11:59 +03:00
feat: Store accessToken in cookies instead of localStorage
This commit is contained in:
@@ -2,11 +2,9 @@ import socket from './socket';
|
||||
|
||||
/* Actions */
|
||||
|
||||
const createCardLabel = (cardId, data, headers) =>
|
||||
socket.post(`/cards/${cardId}/labels`, data, headers);
|
||||
const createCardLabel = (cardId, data) => socket.post(`/cards/${cardId}/labels`, data);
|
||||
|
||||
const deleteCardLabel = (cardId, labelId, headers) =>
|
||||
socket.delete(`/cards/${cardId}/labels/${labelId}`, undefined, headers);
|
||||
const deleteCardLabel = (cardId, labelId) => socket.delete(`/cards/${cardId}/labels/${labelId}`);
|
||||
|
||||
export default {
|
||||
createCardLabel,
|
||||
|
||||
Reference in New Issue
Block a user