summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois Ferrand <thetypz@gmail.com>2014-07-01 15:48:14 +0200
committerFrancois Ferrand <thetypz@gmail.com>2014-07-01 15:48:54 +0200
commit3951ae09cca81fac0651dedb7dfe47b74f6fb1fa (patch)
tree8421088bb191fd9e8a89421d735c630dfb8842c3
parent06d0b7048ebcdfdf6e24eec3ac7dc8fb0327dd6f (diff)
Add closeTask jsonrpc API.
-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);
});