summaryrefslogtreecommitdiffstats
path: root/vendor/gomod.garykim.dev/nc-talk/constants
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gomod.garykim.dev/nc-talk/constants')
-rw-r--r--vendor/gomod.garykim.dev/nc-talk/constants/constants.go5
1 files changed, 5 insertions, 0 deletions
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 + "/"
+}