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 d2813f2c..b0a4cb7b 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('closeTask', function($task_id) use ($task) {
+ return $task->close($task_id);
+});
+
$server->register('removeTask', function($task_id) use ($task) {
return $task->remove($task_id);
});