Merge pull request #23 from IceWhaleTech/v0.2.1

update volumes
This commit is contained in:
link 2021-11-10 03:51:14 -06:00 committed by GitHub
commit 6176289b88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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"):

View file

@ -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
}