diff options
author | Joas Schilling <coding@schilljs.com> | 2018-02-28 12:34:46 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-02-28 14:27:35 +0100 |
commit | bb58d12bcaf991530be1c526d5de78e473936734 (patch) | |
tree | 05e1e07d5abccf4e511279cebbc401b086199717 /apps/updatenotification/appinfo/routes.php | |
parent | 9ae3a5fe2f3b792a20420e00690421184f04bba8 (diff) | |
download | nextcloud-server-bb58d12bcaf991530be1c526d5de78e473936734.tar.gz nextcloud-server-bb58d12bcaf991530be1c526d5de78e473936734.zip |
Check for app updates when there is a new major version available
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/appinfo/routes.php')
-rw-r--r-- | apps/updatenotification/appinfo/routes.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/apps/updatenotification/appinfo/routes.php b/apps/updatenotification/appinfo/routes.php index fd508d37051..86191680c41 100644 --- a/apps/updatenotification/appinfo/routes.php +++ b/apps/updatenotification/appinfo/routes.php @@ -21,10 +21,12 @@ * */ -use OCA\UpdateNotification\AppInfo\Application; - -$application = new Application(); -$application->registerRoutes($this, ['routes' => [ - ['name' => 'Admin#createCredentials', 'url' => '/credentials', 'verb' => 'GET'], - ['name' => 'Admin#setChannel', 'url' => '/channel', 'verb' => 'POST'], -]]); +return [ + 'routes' => [ + ['name' => 'Admin#createCredentials', 'url' => '/credentials', 'verb' => 'GET'], + ['name' => 'Admin#setChannel', 'url' => '/channel', 'verb' => 'POST'], + ], + 'ocs' => [ + ['name' => 'API#getAppList', 'url' => '/api/{apiVersion}/applist/{newVersion}', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], + ], +]; |