feat: implement core Nuxt application with film browsing, search, and detail page functionality using OPhim and NguonC APIs.

This commit is contained in:
thanhvudaynee
2026-05-17 20:30:19 +07:00
parent 90791df93d
commit 34d25df560
18 changed files with 2907 additions and 145 deletions
+9
View File
@@ -0,0 +1,9 @@
import { getKoreanMovies } from '../utils/movies'
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() : ''
return await getKoreanMovies(page, keyword)
})