MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / read_collections

Function read_collections

backend/src/flashcards/api.py:35–41  ·  view source on GitHub ↗
(
    session: SessionDep, current_user: CurrentUser, skip: int = 0, limit: int = 100
)

Source from the content-addressed store, hash-verified

33
34@router.get("/collections/", response_model=CollectionList)
35def read_collections(
36 session: SessionDep, current_user: CurrentUser, skip: int = 0, limit: int = 100
37) -> Any:
38 collections, count = services.get_collections(
39 session=session, user_id=current_user.id, skip=skip, limit=limit
40 )
41 return CollectionList(data=collections, count=count)
42
43
44@router.post("/collections/", response_model=Collection)

Callers

nothing calls this directly

Calls 1

CollectionListClass · 0.85

Tested by

no test coverage detected