reach out to localhost of the host machine from within the navidromer container

This commit is contained in:
luke-1993 2023-10-13 09:49:17 +01:00 committed by lukepurnell
parent de76f84599
commit ff429b1bb1

View File

@ -180,7 +180,9 @@ func (api *Router) Delete(w http.ResponseWriter, r *http.Request) (*responses.Su
} }
println(mf.Artist) println(mf.Artist)
println(mf.Title) println(mf.Title)
baseUrl := "http://127.0.0.1:8337" // todo make this configurable
//baseUrl := "http://127.0.0.1:8337"
baseUrl := "host.docker.internal:8337"
queryEndPoint := "/item/query/" queryEndPoint := "/item/query/"
queryStr := fmt.Sprintf("artist:%s/title:%s", mf.Artist, mf.Title) queryStr := fmt.Sprintf("artist:%s/title:%s", mf.Artist, mf.Title)
url := baseUrl + queryEndPoint + queryStr url := baseUrl + queryEndPoint + queryStr