must add http prefix

This commit is contained in:
luke-1993 2023-10-13 10:52:46 +01:00 committed by lukepurnell
parent ff429b1bb1
commit f9b1a68532

View File

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