Pārlūkot izejas kodu

CLEAN: drop unused types

master
valere pirms 5 mēnešiem
vecāks
revīzija
40649a9507
2 mainītis faili ar 1 papildinājumiem un 12 dzēšanām
  1. +1
    -1
      nuxt.config.ts
  2. +0
    -11
      server/api/search/[termspage].ts

+ 1
- 1
nuxt.config.ts Parādīt failu

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

+ 0
- 11
server/api/search/[termspage].ts Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt