summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jsonrpc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/jsonrpc.php b/jsonrpc.php
index d2813f2c..186e454d 100644
--- a/jsonrpc.php
+++ b/jsonrpc.php
@@ -123,6 +123,14 @@ $server->register('updateTask', function($values) use ($task) {
return $valid && $task->update($values);
});
+$server->register('openTask', function($task_id) use ($task) {
+ return $task->open($task_id);
+});
+
+$server->register('closeTask', function($task_id) use ($task) {
+ return $task->close($task_id);
+});
+
$server->register('removeTask', function($task_id) use ($task) {
return $task->remove($task_id);
});