Refactor
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
a10fc038fd
commit
238571521d
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue