changed to public server

This commit is contained in:
2024-05-23 22:56:36 +02:00
parent 3990c620a1
commit 68685b53b0
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ func sendRequest(method, url string, jsonBody []byte) (Request, error) {
func getPackage(packageName string) (PackageIndex, error) {
var pkgidx PackageIndex
jsonBody := []byte(fmt.Sprintf(`{"name": "%s"}`, packageName))
req, err := sendRequest(http.MethodGet, "http://localhost:3000", jsonBody)
req, err := sendRequest(http.MethodGet, URL, jsonBody)
if err != nil {
fmt.Printf("Fetching error: %s\n", err)
}