mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
27 lines
636 B
JavaScript
Executable file
27 lines
636 B
JavaScript
Executable file
/*!
|
|
* Copyright (c) 2024 PLANKA Software GmbH
|
|
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
|
|
*/
|
|
|
|
import http from './http';
|
|
import socket from './socket';
|
|
|
|
/* Actions */
|
|
|
|
const createBackgroundImage = (projectId, { file, ...data }, requestId, headers) =>
|
|
http.post(
|
|
`/projects/${projectId}/background-images?requestId=${requestId}`,
|
|
{
|
|
...data,
|
|
file,
|
|
},
|
|
headers,
|
|
);
|
|
|
|
const deleteBackgroundImage = (id, headers) =>
|
|
socket.delete(`/background-images/${id}`, undefined, headers);
|
|
|
|
export default {
|
|
createBackgroundImage,
|
|
deleteBackgroundImage,
|
|
};
|