Add VidHub endpoints

This commit is contained in:
Ben Adrian Sarmiento
2024-07-11 15:53:20 +02:00
parent f8f68e8225
commit 396a8781aa
10 changed files with 182 additions and 86 deletions

14
internal/dav/util.go Normal file
View File

@@ -0,0 +1,14 @@
package dav
import (
"path/filepath"
"strings"
)
func addSlash(input string) string {
p := filepath.Join("/", input)
if p == "/" || strings.HasSuffix(p, "/") {
return p
}
return p + "/"
}