Adding GetAlbum method and unite tests
Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
parent
0476727633
commit
6b742a1db4
9 changed files with 102 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue