diff options
author | Francois Ferrand <thetypz@gmail.com> | 2014-07-01 18:26:01 +0200 |
---|---|---|
committer | Francois Ferrand <thetypz@gmail.com> | 2014-07-01 18:27:03 +0200 |
commit | 753da195736f0de091afc3315396254a4644a4d4 (patch) | |
tree | f6f08e29dfad0b54145927d3b7db6e6d8d5fa7c5 | |
parent | 3951ae09cca81fac0651dedb7dfe47b74f6fb1fa (diff) |
Add openTask jsonrpc API.
-rw-r--r-- | jsonrpc.php | 4 |
1 files changed, 4 insertions, 0 deletions
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); }); |