diff options
author | Joas Schilling <coding@schilljs.com> | 2018-02-16 14:51:10 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-02-16 14:51:10 +0300 |
commit | e80405d97b6cac87ee785580307db9436f30ee2f (patch) | |
tree | e7700ef7998241cfcb2f0c9ae0e58d9a398e2751 /appinfo | |
parent | fffb9ac5ca0d4c9d4a69c97f191be839c3682167 (diff) |
Merge admin notifications app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/info.xml | 6 | ||||
-rw-r--r-- | appinfo/routes.php | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml index 5868231..bb49378 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -15,7 +15,7 @@ <licence>AGPL</licence> <author>Joas Schilling</author> - <version>2.2.0</version> + <version>2.2.1</version> <types> <logging/> @@ -30,4 +30,8 @@ <dependencies> <nextcloud min-version="14" max-version="14" /> </dependencies> + + <commands> + <command>OCA\Notifications\Command\Generate</command> + </commands> </info> diff --git a/appinfo/routes.php b/appinfo/routes.php index 388bdd1..d9538a3 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -27,5 +27,6 @@ return [ ['name' => 'Endpoint#deleteAllNotifications', 'url' => '/api/{apiVersion}/notifications', 'verb' => 'DELETE', 'requirements' => ['apiVersion' => 'v(1|2)']], ['name' => 'Push#registerDevice', 'url' => '/api/{apiVersion}/push', 'verb' => 'POST', 'requirements' => ['apiVersion' => 'v2']], ['name' => 'Push#removeDevice', 'url' => '/api/{apiVersion}/push', 'verb' => 'DELETE', 'requirements' => ['apiVersion' => 'v2']], + ['name' => 'API#generateNotification', 'url' => '/api/{apiVersion}/notifications/{userId}', 'verb' => 'POST', 'requirements' => ['apiVersion' => 'v(1|2)'], 'root' => '/apps/admin_notifications'], ], ]; |