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
|
|
@ -5,13 +5,13 @@ import (
|
|||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"code.oliverdavies.uk/opdavies/lab/go-gin/internal/lib"
|
||||
"code.oliverdavies.uk/opdavies/lab/go-gin/internal/albums"
|
||||
)
|
||||
|
||||
func main() {
|
||||
r := gin.Default()
|
||||
|
||||
r.GET("/albums", lib.GetAlbums)
|
||||
r.GET("/albums", albums.GetAll)
|
||||
|
||||
r.GET("/ping", func(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue