From e241d438bbf86d744d5abcc11fdd2176fa276d3b Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 3 May 2013 10:41:00 +0200 Subject: also provide the app version --- appinfo/api.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'appinfo') diff --git a/appinfo/api.php b/appinfo/api.php index b2b657cf5..2c9c7b24b 100644 --- a/appinfo/api.php +++ b/appinfo/api.php @@ -29,6 +29,17 @@ use \OCA\News\DependencyInjection\DIContainer; 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 */ -- cgit v1.2.3