From 753da195736f0de091afc3315396254a4644a4d4 Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Tue, 1 Jul 2014 18:26:01 +0200 Subject: Add openTask jsonrpc API. --- jsonrpc.php | 4 ++++ 1 file changed, 4 insertions(+) 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); }); -- cgit v1.2.3