mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
feat: Store accessToken in cookies instead of localStorage
This commit is contained in:
parent
cad3233da7
commit
7ef55ec578
27 changed files with 137 additions and 114 deletions
|
@ -4,11 +4,10 @@ import { transformAttachment } from './attachments';
|
|||
|
||||
/* Actions */
|
||||
|
||||
const createBoard = (projectId, data, headers) =>
|
||||
socket.post(`/projects/${projectId}/boards`, data, headers);
|
||||
const createBoard = (projectId, data) => socket.post(`/projects/${projectId}/boards`, data);
|
||||
|
||||
const getBoard = (id, headers) =>
|
||||
socket.get(`/boards/${id}`, undefined, headers).then((body) => ({
|
||||
const getBoard = (id) =>
|
||||
socket.get(`/boards/${id}`).then((body) => ({
|
||||
...body,
|
||||
included: {
|
||||
...body.included,
|
||||
|
@ -17,9 +16,9 @@ const getBoard = (id, headers) =>
|
|||
},
|
||||
}));
|
||||
|
||||
const updateBoard = (id, data, headers) => socket.patch(`/boards/${id}`, data, headers);
|
||||
const updateBoard = (id, data) => socket.patch(`/boards/${id}`, data);
|
||||
|
||||
const deleteBoard = (id, headers) => socket.delete(`/boards/${id}`, undefined, headers);
|
||||
const deleteBoard = (id) => socket.delete(`/boards/${id}`);
|
||||
|
||||
export default {
|
||||
createBoard,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue