diff --git a/nuxt.config.ts b/nuxt.config.ts index c0c9b42..19496a3 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -28,7 +28,7 @@ export default defineNuxtConfig({ } }, typescript: { - typeCheck: true + strict: true }, compatibilityDate: '2024-10-06', }) diff --git a/server/api/search/[termspage].ts b/server/api/search/[termspage].ts index 54315cd..25bd2d4 100644 --- a/server/api/search/[termspage].ts +++ b/server/api/search/[termspage].ts @@ -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) => { 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`