summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorcall-me-matt <nextcloud@matthiasheinisch.de>2020-03-30 23:32:37 +0200
committercall-me-matt <nextcloud@matthiasheinisch.de>2020-08-05 00:23:06 +0200
commit973c28825b42c10a153785982c782368b9b79702 (patch)
tree63981d8805d2212b219d25d97761e25d27909206 /appinfo
parentb78f4d65cc1438477e6c307f9d5d732e84833a98 (diff)
allowing for background updates of social avatars
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/info.xml5
-rw-r--r--appinfo/routes.php6
2 files changed, 9 insertions, 2 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 5fa7b3bf..1a943d67 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -51,7 +51,12 @@
</navigation>
</navigations>
+ <background-jobs>
+ <job>OCA\Contacts\Cron\SocialUpdateRegistration</job>
+ </background-jobs>
+
<settings>
<admin>OCA\Contacts\Settings\AdminSettings</admin>
</settings>
+
</info>
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 6bdf24a3..88f430cc 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -27,7 +27,9 @@ return [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
['name' => 'page#index', 'url' => '/{group}', 'verb' => 'GET', 'postfix' => 'group'],
['name' => 'page#index', 'url' => '/{group}/{contact}', 'verb' => 'GET', 'postfix' => 'group.contact'],
- ['name' => 'social_api#update_contact', 'url' => '/api/v1/social/avatar/{network}/{addressbookId}/{contactId}', 'verb' => 'PUT'],
- ['name' => 'social_api#set_app_config', 'url' => '/api/v1/social/config/{key}', 'verb' => 'POST'],
+ ['name' => 'social_api#update_contact', 'url' => '/api/v1/social/avatar/{network}/{addressbookId}/{contactId}', 'verb' => 'PUT'],
+ ['name' => 'social_api#set_app_config', 'url' => '/api/v1/social/config/global/{key}', 'verb' => 'PUT'],
+ ['name' => 'social_api#set_user_config', 'url' => '/api/v1/social/config/user/{key}', 'verb' => 'PUT'],
+ ['name' => 'social_api#get_user_config', 'url' => '/api/v1/social/config/user/{key}', 'verb' => 'GET'],
]
];