mirror of
https://github.com/go-vikunja/app
synced 2024-06-05 03:59:48 +00:00
fix: create tasks endpoint
This commit is contained in:
parent
2b86e98812
commit
eb2e3d1cf1
|
@ -13,7 +13,7 @@ class TaskAPIService extends APIService implements TaskService {
|
||||||
@override
|
@override
|
||||||
Future<Task?> add(int projectId, Task task) {
|
Future<Task?> add(int projectId, Task task) {
|
||||||
return client
|
return client
|
||||||
.put('/projects/$projectId', body: task.toJSON())
|
.put('/projects/$projectId/tasks', body: task.toJSON())
|
||||||
.then((response) {
|
.then((response) {
|
||||||
if (response == null) return null;
|
if (response == null) return null;
|
||||||
return Task.fromJson(response.body);
|
return Task.fromJson(response.body);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user