mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-05 08:19:26 +00:00
17 lines
366 B
TypeScript
17 lines
366 B
TypeScript
import APIClient from '../../functions/APIClient';
|
|
|
|
type TaskNamesType =
|
|
| 'download_pending'
|
|
| 'update_subscribed'
|
|
| 'manual_import'
|
|
| 'resync_thumbs'
|
|
| 'rescan_filesystem';
|
|
|
|
const updateTaskByName = async (taskName: TaskNamesType) => {
|
|
return APIClient(`/api/task/by-name/${taskName}/`, {
|
|
method: 'POST',
|
|
});
|
|
};
|
|
|
|
export default updateTaskByName;
|