diff --git a/pkg/docker/volumes.go b/pkg/docker/volumes.go index f7cbce4..ad7c392 100644 --- a/pkg/docker/volumes.go +++ b/pkg/docker/volumes.go @@ -12,6 +12,8 @@ func GetDir(id, envName string) string { switch { case strings.Contains(strings.ToLower(envName), "config") || strings.Contains(strings.ToLower(envName), "photoprism/storage") || strings.Contains(strings.ToLower(envName), "config"): path = "/DATA/AppData/" + id + "/" + case strings.Contains(strings.ToLower(envName), "media"): + path = "/DATA/Media/" case strings.Contains(strings.ToLower(envName), "movie"): path = "/DATA/Media/Movies/" case strings.Contains(strings.ToLower(envName), "music"): diff --git a/route/route.go b/route/route.go index a26e216..b36275b 100644 --- a/route/route.go +++ b/route/route.go @@ -266,7 +266,7 @@ func InitRouter() *gin.Engine { { v1SearchGroup.GET("/search", v1.GetSearchList) } - v1Group.GET("/sync/*url", v1.SyncToSyncthing) + v1Group.Any("/sync/*url", v1.SyncToSyncthing) } return r }