summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/RootCollection.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-12-23 12:12:38 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-03-29 00:04:29 +0200
commit23aab05bdaaaff8310cad64ff028bc7a53656f5a (patch)
tree740ea5687fab84d77fe622ef236fcac2c9054483 /apps/dav/lib/RootCollection.php
parent4821c00ea81797fcb5a99c31105ad42be598f113 (diff)
downloadnextcloud-server-23aab05bdaaaff8310cad64ff028bc7a53656f5a.tar.gz
nextcloud-server-23aab05bdaaaff8310cad64ff028bc7a53656f5a.zip
Adding dav resource for avatars
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav/lib/RootCollection.php')
-rw-r--r--apps/dav/lib/RootCollection.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/RootCollection.php b/apps/dav/lib/RootCollection.php
index 478f0929c20..a243ec6d00a 100644
--- a/apps/dav/lib/RootCollection.php
+++ b/apps/dav/lib/RootCollection.php
@@ -99,6 +99,9 @@ class RootCollection extends SimpleCollection {
$uploadCollection = new Upload\RootCollection($userPrincipalBackend, 'principals/users');
$uploadCollection->disableListing = $disableListing;
+ $avatarCollection = new Avatars\RootCollection($userPrincipalBackend, 'principals/users');
+ $avatarCollection->disableListing = $disableListing;
+
$children = [
new SimpleCollection('principals', [
$userPrincipals,
@@ -114,6 +117,7 @@ class RootCollection extends SimpleCollection {
$systemTagRelationsCollection,
$commentsCollection,
$uploadCollection,
+ $avatarCollection
];
parent::__construct('root', $children);