diff --git a/api/api b/api/api new file mode 100755 index 0000000..8f7fd40 Binary files /dev/null and b/api/api differ diff --git a/api/main.go b/api/main.go index 34a1f5e..54bef6f 100644 --- a/api/main.go +++ b/api/main.go @@ -17,7 +17,7 @@ func generateRandomString(length int) string { } func main() { - err := godotenv.Load("../.env") + err := godotenv.Load("../music/.env") if err != nil { log.Fatalf("Error loading .env file: %s", err) } @@ -38,5 +38,5 @@ func main() { http.Redirect(w, r, redirectURL, http.StatusFound) }) - http.ListenAndServe(":8080", nil) + http.ListenAndServe(":9753", nil) } diff --git a/music/explore.php b/music/explore.php index 71499df..19d592b 100644 --- a/music/explore.php +++ b/music/explore.php @@ -7,9 +7,7 @@ $html = ''; $client_id = $_ENV['SPOTIFY_CLIENT_ID']; $client_secret = $_ENV['SPOTIFY_CLIENT_SECRET']; -// $auth_code = $_ENV['SPOTIFY_AUTH_CODE']; $auth_code = $_GET['code']; -// $auth_state = $_GET['state']; $client_credentials = get_client_credentials($client_id, $client_secret); diff --git a/music/index.php b/music/index.php index d852629..4aaf000 100644 --- a/music/index.php +++ b/music/index.php @@ -1,7 +1,6 @@