From eb2e3d1cf152e9d35c3c8a58ab26d5644bd58a48 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 29 Nov 2023 22:41:26 +0100 Subject: [PATCH] fix: create tasks endpoint --- lib/api/task_implementation.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/task_implementation.dart b/lib/api/task_implementation.dart index 7221edf..fb8b05f 100644 --- a/lib/api/task_implementation.dart +++ b/lib/api/task_implementation.dart @@ -13,7 +13,7 @@ class TaskAPIService extends APIService implements TaskService { @override Future add(int projectId, Task task) { return client - .put('/projects/$projectId', body: task.toJSON()) + .put('/projects/$projectId/tasks', body: task.toJSON()) .then((response) { if (response == null) return null; return Task.fromJson(response.body);