Adding GetAlbum method and unite tests

Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
Kris Nóva 2021-02-11 13:46:28 -08:00
parent 0476727633
commit 6b742a1db4
9 changed files with 102 additions and 6 deletions

View file

@ -40,7 +40,7 @@ func SaveAlbumAsYaml(a entity.Album) {
}
}
// GET /api/v1/albums
// GET /api/v1/albums/:uuid
func GetAlbums(router *gin.RouterGroup) {
router.GET("/albums", func(c *gin.Context) {
s := Auth(SessionID(c), acl.ResourceAlbums, acl.ActionSearch)