feat(tasks): mark tasks as completed

This commit is contained in:
Elian Doran
2025-02-19 19:22:38 +02:00
parent d4ef15212f
commit 7c0b43db85
6 changed files with 40 additions and 1 deletions

View File

@@ -5,3 +5,7 @@ export async function createNewTask(title: string) {
title
});
}
export async function toggleTaskDone(taskId: string) {
await server.post(`tasks/${taskId}/toggle`);
}