|
@@ -1,5 +1,3 @@ |
|
|
import fetch from 'node-fetch' |
|
|
|
|
|
|
|
|
|
|
|
export default eventHandler(async (req) => { |
|
|
export default eventHandler(async (req) => { |
|
|
const page = req.context.params?.page || 1 |
|
|
const page = req.context.params?.page || 1 |
|
|
const url = `https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=${page}&sort_by=popularity.desc` |
|
|
const url = `https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=${page}&sort_by=popularity.desc` |
|
|