From c3dfa1f0e7695f4b1242167979374246a59f037a Mon Sep 17 00:00:00 2001 From: Matt Gleich Date: Fri, 3 Jan 2025 00:01:06 -0500 Subject: [PATCH] feat: include recently played in serve http func Signed-off-by: Matt Gleich --- internal/apis/applemusic/applemusic.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/apis/applemusic/applemusic.go b/internal/apis/applemusic/applemusic.go index e3d57d7..f2a5347 100644 --- a/internal/apis/applemusic/applemusic.go +++ b/internal/apis/applemusic/applemusic.go @@ -97,6 +97,7 @@ func serveHTTP(c *cache.Cache[cacheData]) http.HandlerFunc { }, ) } + data.RecentlyPlayed = c.Data.RecentlyPlayed err := json.NewEncoder(w).Encode(data) c.DataMutex.RUnlock()