summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authormatthias <matthias@butler>2020-03-30 23:32:37 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-25 09:40:05 +0200
commite84571f0037b1222549e5fe9b4ac65ee4a1285aa (patch)
tree691f701b6021e6b0db7fcf339afe0edb69e5a617 /appinfo
parente2633171d6a0581c76fcbf9abb162b581b1d219e (diff)
Allow for avatar downloads from social networks
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php26
-rw-r--r--appinfo/info.xml4
-rw-r--r--appinfo/routes.php4
3 files changed, 33 insertions, 1 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
new file mode 100644
index 00000000..69901b4f
--- /dev/null
+++ b/appinfo/app.php
@@ -0,0 +1,26 @@
+<?php
+/**
+ * @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+use OCA\Contacts\AppInfo\Application;
+
+$app = \OC::$server->query(Application::class);
diff --git a/appinfo/info.xml b/appinfo/info.xml
index a3f7bdce..5fa7b3bf 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -50,4 +50,8 @@
<order>4</order>
</navigation>
</navigations>
+
+ <settings>
+ <admin>OCA\Contacts\Settings\AdminSettings</admin>
+ </settings>
</info>
diff --git a/appinfo/routes.php b/appinfo/routes.php
index e09de763..647b8f27 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -25,6 +25,8 @@ return [
'routes' => [
['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' => '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'],
]
];