Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-10-01 12:00:00 +01:00
parent a10fc038fd
commit 238571521d
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
package lib
package albums
import (
"net/http"
@ -19,6 +19,6 @@ var albums = []album{
{ID: "3", Title: "Sarah Vaughan and Clifford Brown", Artist: "Sarah Vaughan", Price: 39.99},
}
func GetAlbums(c *gin.Context) {
func GetAll(c *gin.Context) {
c.IndentedJSON(http.StatusOK, albums)
}