Skip to content

Commit

Permalink
update volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong committed Nov 10, 2021
1 parent 49ca0af commit 5cfd44d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/docker/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down
2 changes: 1 addition & 1 deletion route/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 5cfd44d

Please sign in to comment.