Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Barnoin <julien@berryandcloud.com>2021-08-18 20:57:09 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-11 17:03:31 +0300
commit3dcfc90c2efac3cb95d7dde823015c086f13377f (patch)
treed504ca12ceeb5919b0488f913c3eb77c3271ea4b /appinfo
parent02f671db0f76024674713d3a141e1f0673fba6fb (diff)
Sending unseen notifications as email periodically. Includes a new user settings page for notifications to configure this option.
Signed-off-by: Julien Barnoin <julien@berryandcloud.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/info.xml9
-rw-r--r--appinfo/routes.php2
2 files changed, 11 insertions, 0 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml
index ec900fb..448464e 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -35,8 +35,17 @@
<nextcloud min-version="23" max-version="23" />
</dependencies>
+ <background-jobs>
+ <job>OCA\Notifications\BackgroundJob\SendNotificationMails</job>
+ </background-jobs>
+
<commands>
<command>OCA\Notifications\Command\Generate</command>
<command>OCA\Notifications\Command\TestPush</command>
</commands>
+
+ <settings>
+ <personal>OCA\Notifications\Settings\Personal</personal>
+ <personal-section>OCA\Notifications\Settings\PersonalSection</personal-section>
+ </settings>
</info>
diff --git a/appinfo/routes.php b/appinfo/routes.php
index d083614..7e04e2a 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -32,5 +32,7 @@ return [
['name' => 'Push#removeDevice', 'url' => '/api/{apiVersion}/push', 'verb' => 'DELETE', 'requirements' => ['apiVersion' => 'v2']],
['name' => 'API#generateNotification', 'url' => '/api/{apiVersion}/admin_notifications/{userId}', 'verb' => 'POST', 'requirements' => ['apiVersion' => 'v(1|2)']],
+
+ ['name' => 'Settings#personal', 'url' => '/api/{apiVersion}/settings', 'verb' => 'POST', 'requirements' => ['apiVersion' => 'v2']],
],
];