fix: create tasks endpoint

This commit is contained in:
kolaente 2023-11-29 22:41:26 +01:00
parent 2b86e98812
commit eb2e3d1cf1
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class TaskAPIService extends APIService implements TaskService {
@override
Future<Task?> 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);