diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-03 10:41:00 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-03 10:41:14 +0200 |
commit | e241d438bbf86d744d5abcc11fdd2176fa276d3b (patch) | |
tree | bc03a48a8beec77ce662514f6a5acb08d8d5d5e1 /appinfo | |
parent | 081704721afb986ec971aa29e22a03419f8393cc (diff) |
also provide the app version
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/api.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/appinfo/api.php b/appinfo/api.php index b2b657cf5..2c9c7b24b 100644 --- a/appinfo/api.php +++ b/appinfo/api.php @@ -30,6 +30,17 @@ use \OCA\AppFramework\External\External; /** + * Generic API + */ +\OCP\API::register('get', '/apps/news/version', + function($params) { + return External::main('NewsAPI', 'version', $params, new DIContainer()); + }, + 'news', + \OC_API::USER_AUTH +); + +/** * Folder API */ \OCP\API::register('get', '/apps/news/folders', |