diff options
author | Francois Ferrand <thetypz@gmail.com> | 2014-07-01 15:48:14 +0200 |
---|---|---|
committer | Francois Ferrand <thetypz@gmail.com> | 2014-07-01 15:48:54 +0200 |
commit | 3951ae09cca81fac0651dedb7dfe47b74f6fb1fa (patch) | |
tree | 8421088bb191fd9e8a89421d735c630dfb8842c3 | |
parent | 06d0b7048ebcdfdf6e24eec3ac7dc8fb0327dd6f (diff) |
Add closeTask jsonrpc API.
-rw-r--r-- | jsonrpc.php | 4 |
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); }); |