Browse Source

CLEAN: drop unused types

master
valere 5 months ago
parent
commit
40649a9507
2 changed files with 1 additions and 12 deletions
  1. +1
    -1
      nuxt.config.ts
  2. +0
    -11
      server/api/search/[termspage].ts

+ 1
- 1
nuxt.config.ts View File

@@ -28,7 +28,7 @@ export default defineNuxtConfig({
}
},
typescript: {
typeCheck: true
strict: true
},
compatibilityDate: '2024-10-06',
})

+ 0
- 11
server/api/search/[termspage].ts View File

@@ -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`


Loading…
Cancel
Save