Add api procedure to get the application version

This commit is contained in:
Frederic Guillot
2015-03-01 20:25:46 -05:00
parent 052b14d482
commit 23f8f2c576
3 changed files with 37 additions and 3 deletions

View File

@@ -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
*/