From 09106ccb75fbd68f19f7436319abea60299cf8e1 Mon Sep 17 00:00:00 2001 From: Adam French Date: Sun, 23 Nov 2025 21:39:06 +0000 Subject: [PATCH] added listening to port && store creation --- backend/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/main.go b/backend/main.go index fe886f2..235b4be 100644 --- a/backend/main.go +++ b/backend/main.go @@ -37,14 +37,14 @@ func main() { auth := services.InitSpotifyAuth(spotifyConfig) - store := handlers.Store{DB: db, SpotifyAuth: auth, SpotifyClient: nil} + store := handlers.Store{DB: db, SpotifyAuth: auth, SpotifyClient: nil, SpotifyToken: nil} r.GET("/posts", store.GetPosts) r.POST("/posts", store.CreatePost) r.PUT("/posts/:id", store.UpdatePost) r.GET("/callback", store.CompleteAuth) - // r.GET("/spotify", store.ListeningTo) + r.GET("/spotify", store.ListeningTo) // r.POST("/spotify", store.SendSong) r.GET("/", func(c *gin.Context) {