From 3951ae09cca81fac0651dedb7dfe47b74f6fb1fa Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Tue, 1 Jul 2014 15:48:14 +0200 Subject: Add closeTask jsonrpc API. --- jsonrpc.php | 4 ++++ 1 file changed, 4 insertions(+) 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); }); -- cgit v1.2.3