feat(api): register library + search routes under RequireUser

This commit is contained in:
2026-04-21 08:34:12 -04:00
parent 683c11661b
commit db2ee3b21f
2 changed files with 36 additions and 0 deletions
+6
View File
@@ -24,6 +24,12 @@ func Mount(r chi.Router, pool *pgxpool.Pool, logger *slog.Logger) {
authed.Use(auth.RequireUser(pool))
authed.Post("/auth/logout", h.handleLogout)
authed.Get("/me", h.handleGetMe)
authed.Get("/artists", h.handleListArtists)
authed.Get("/artists/{id}", h.handleGetArtist)
authed.Get("/albums/{id}", h.handleGetAlbum)
authed.Get("/tracks/{id}", h.handleGetTrack)
authed.Get("/search", h.handleSearch)
})
})
}