|
@@ -1,14 +1,3 @@ |
|
|
interface Film { |
|
|
|
|
|
title: string, |
|
|
|
|
|
seed: number, |
|
|
|
|
|
size: string, |
|
|
|
|
|
age: string, |
|
|
|
|
|
magnet: string, |
|
|
|
|
|
provider: string, |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let films: Film[] = [] |
|
|
|
|
|
|
|
|
|
|
|
export default eventHandler(async (req) => { |
|
|
export default eventHandler(async (req) => { |
|
|
const [terms, page] = req.context.params?.termspage.split('-') || '' |
|
|
const [terms, page] = req.context.params?.termspage.split('-') || '' |
|
|
const url = `https://api.themoviedb.org/3/search/movie?query=${terms}&page=${page}&include_adult=false&language=en-US&page=1` |
|
|
const url = `https://api.themoviedb.org/3/search/movie?query=${terms}&page=${page}&include_adult=false&language=en-US&page=1` |
|
|