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
|
|
|
|
|
*/
|
|
|
|
|
|
2025-09-22 20:35:13 +02:00
|
|
|
import socket from './socket';
|
2025-05-10 02:09:06 +02:00
|
|
|
|
|
|
|
|
/* Actions */
|
|
|
|
|
|
2025-09-22 20:35:13 +02:00
|
|
|
const getConfig = (headers) => socket.get('/config', undefined, headers);
|
|
|
|
|
|
|
|
|
|
const updateConfig = (data, headers) => socket.patch('/config', data, headers);
|
|
|
|
|
|
|
|
|
|
const testSmtpConfig = (headers) => socket.post('/config/test-smtp', undefined, headers);
|
2025-05-10 02:09:06 +02:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
getConfig,
|
2025-09-22 20:35:13 +02:00
|
|
|
updateConfig,
|
|
|
|
|
testSmtpConfig,
|
2025-05-10 02:09:06 +02:00
|
|
|
};
|