commit
6176289b88
2 changed files with 3 additions and 1 deletions
|
@ -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"):
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue