(
session: SessionDep, current_user: CurrentUser, skip: int = 0, limit: int = 100
)
| 33 | |
| 34 | @router.get("/collections/", response_model=CollectionList) |
| 35 | def 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) |
nothing calls this directly
no test coverage detected