Skip to content

Instantly share code, notes, and snippets.

View Drchey's full-sized avatar
🎯
Focusing

drchey Drchey

🎯
Focusing
View GitHub Profile
@router.get(
"/admin", status_code=status.HTTP_200_OK, response_model=List[blogs.BlogOut]
)
async def get_admin_blogs(
db: Session = Depends(get_db),
limit: int = 30,
offset: int = 0,
search: str | None = None,
current_user=Depends(oauth2.get_current_user),
):