mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:29:29 +00:00
11 lines
239 B
TypeScript
11 lines
239 B
TypeScript
import APIClient from '../../functions/APIClient';
|
|
|
|
const stopTaskByName = async (taskId: string) => {
|
|
APIClient(`/api/task/by-id/${taskId}/`, {
|
|
method: 'POST',
|
|
body: { command: 'stop' },
|
|
});
|
|
};
|
|
|
|
export default stopTaskByName;
|