<|file_name|>album.py<|end_file_name|><｜fim▁begin｜>from ..models import Album
from ..resource import SingleResource, ListResource
from ..schemas import AlbumSchema


class SingleAlbum(SingleResource):
    schema = AlbumSchema()
    routes = ('/album/<int:id>/',)
    model = Album


class ListAlbums(ListResource):
    <|fim_middle|>

<｜fim▁end｜>
    schema = AlbumSchema(many=True)
    routes = ('/album/', '/tracklist/')
    model = Album