This commit is contained in:
Garret Patti
2026-06-29 10:41:29 -04:00
parent d48c1e973e
commit 2b0b19eb91
23 changed files with 969 additions and 44 deletions

View File

@@ -4,8 +4,9 @@ from sqlalchemy import select
from sqlalchemy.orm import selectinload
from app.database import get_db
from app.models import MediaItem, media_item_tags
from app.models import MediaItem, media_item_tags, User
from app.schemas import MediaItemOut
from app.auth import get_current_user
router = APIRouter(prefix="/search", tags=["search"])
@@ -16,6 +17,7 @@ async def search(
tags: str = Query(default=""),
library_id: int | None = Query(default=None),
db: AsyncSession = Depends(get_db),
_user: User = Depends(get_current_user),
):
stmt = (
select(MediaItem)