New getAllAlbumsSlim endpoint

- Add new endpoint
- Add slim option to albumService.getAll (default false)
- Use getAllAlbumsSlim in search-albums-section
This commit is contained in:
CJPeckover
2025-07-14 13:44:05 -04:00
parent 4a6ba4a40a
commit 419175d79b
6 changed files with 113 additions and 11 deletions
@@ -28,6 +28,13 @@ export class AlbumController {
return this.service.getAll(auth, query);
}
@Get('slim')
@Authenticated({ permission: Permission.ALBUM_READ })
getAllAlbumsSlim(@Auth() auth: AuthDto, @Query() query: GetAlbumsDto): Promise<AlbumResponseDto[]> {
return this.service.getAll(auth, query, true);
//asdf
}
@Post()
@Authenticated({ permission: Permission.ALBUM_CREATE })
createAlbum(@Auth() auth: AuthDto, @Body() dto: CreateAlbumDto): Promise<AlbumResponseDto> {