From 973c28825b42c10a153785982c782368b9b79702 Mon Sep 17 00:00:00 2001 From: call-me-matt Date: Mon, 30 Mar 2020 23:32:37 +0200 Subject: allowing for background updates of social avatars Signed-off-by: call-me-matt --- appinfo/info.xml | 5 +++++ appinfo/routes.php | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'appinfo') 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 @@ + + OCA\Contacts\Cron\SocialUpdateRegistration + + OCA\Contacts\Settings\AdminSettings + 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'], ] ]; -- cgit v1.2.3