From a0741d99b80d7da1c063853382756b3a9689f6a7 Mon Sep 17 00:00:00 2001 From: Gary Kim Date: Sun, 30 Aug 2020 07:49:26 -0400 Subject: Add TLSConfig to nctalk (#1195) Signed-off-by: Gary Kim --- vendor/gomod.garykim.dev/nc-talk/constants/constants.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vendor/gomod.garykim.dev/nc-talk/constants') diff --git a/vendor/gomod.garykim.dev/nc-talk/constants/constants.go b/vendor/gomod.garykim.dev/nc-talk/constants/constants.go index de56f162..c70e4daa 100644 --- a/vendor/gomod.garykim.dev/nc-talk/constants/constants.go +++ b/vendor/gomod.garykim.dev/nc-talk/constants/constants.go @@ -18,3 +18,8 @@ const ( // BaseEndpoint is the api endpoint for Nextcloud Talk BaseEndpoint = "/ocs/v2.php/apps/spreed/api/v1/" ) + +// RemoteDavEndpoint returns the endpoint for the Dav API for Nextcloud +func RemoteDavEndpoint(username string, davType string) string { + return "/remote.php/dav/" + username + "/" + davType + "/" +} -- cgit v1.2.3