summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jsonrpc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/jsonrpc.php b/jsonrpc.php
index b0a4cb7b..186e454d 100644
--- a/jsonrpc.php
+++ b/jsonrpc.php
@@ -123,6 +123,10 @@ $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);
});