audio streaming app plyr.fm
38
fork

Configure Feed

Select the types of activity you want to include in your feed.


title: queue sidebarTitle: queue#

backend.api.queue#

queue api endpoints.

Functions#

get_queue source#

get_queue(response: Response, db: Annotated[AsyncSession, Depends(get_db)], session: Session = Depends(require_auth)) -> QueueResponse

get current queue state with ETag for caching.

update_queue source#

update_queue(update: QueueUpdate, session: Session = Depends(require_auth), if_match: Annotated[str | None, Header()] = None) -> QueueResponse

update queue state with optimistic locking via If-Match header.

the If-Match header should contain the expected revision number (as ETag). if there's a conflict (revision mismatch), returns 409.

Classes#

QueueResponse source#

queue state response model.

QueueUpdate source#

queue state update model.