Adding GetAlbums with AlbumOptions and default values, and unit tests

Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
Kris Nóva 2021-02-11 14:21:44 -08:00
parent 6b742a1db4
commit 06fff46e43
8 changed files with 165 additions and 5 deletions

View file

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