changes to run on server.

This commit is contained in:
Joshua Ashton
2025-02-02 12:21:47 -07:00
parent be854ce3c5
commit 307dafdb9d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -23,9 +23,9 @@ func main() {
}
client_id := os.Getenv("SPOTIFY_CLIENT_ID")
redirect_uri := "http://localhost/music"
redirect_uri := "cs2440.joshashton.dev/music"
http.HandleFunc("/login", func(w http.ResponseWriter, r *http.Request) {
http.HandleFunc("/spotify-login", func(w http.ResponseWriter, r *http.Request) {
scope := "user-top-read"
redirectURL := "https://accounts.spotify.com/authorize?" + strings.Join([]string{