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);