feat: implement movie detail page with multi-source support, library features, and responsive layout

This commit is contained in:
thanhvudaynee
2026-05-21 23:07:59 +07:00
parent 4a91b03678
commit 9c52a7927c
18 changed files with 606 additions and 180 deletions
+4 -1
View File
@@ -4,6 +4,9 @@ export default defineEventHandler(async (event) => {
const query = getQuery(event)
const page = Math.max(Number(query.page || 1), 1)
const keyword = typeof query.keyword === 'string' ? query.keyword.trim() : ''
const source = typeof query.source === 'string' && ['ophim', 'nguonc', 'kkphim'].includes(query.source)
? query.source as 'ophim' | 'nguonc' | 'kkphim'
: 'all'
return await getKoreanMovies(page, keyword)
return await getKoreanMovies(page, keyword, source)
})