diff options
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', |