summaryrefslogtreecommitdiff
path: root/jsonrpc.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-03-01 20:25:46 -0500
committerFrederic Guillot <fred@kanboard.net>2015-03-01 20:25:46 -0500
commit23f8f2c576271a9007b5da0a4d0ba144ad66086d (patch)
tree5058c2167540389b583bd87dcd9b9992dc399604 /jsonrpc.php
parent052b14d48290405c8b3684e872f9c15858745bb2 (diff)
Add api procedure to get the application version
Diffstat (limited to 'jsonrpc.php')
-rw-r--r--jsonrpc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/jsonrpc.php b/jsonrpc.php
index a2106010..66421daf 100644
--- a/jsonrpc.php
+++ b/jsonrpc.php
@@ -418,6 +418,10 @@ $server->register('getTimezone', function() use ($container) {
return $container['config']->get('application_timezone');
});
+$server->register('getVersion', function() use ($container) {
+ return APP_VERSION;
+});
+
/**
* Parse incoming requests
*/