This website works better with JavaScript.
首頁
探索
說明
登入
valere
/
design-patterns-nuxt
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
CLEAN: drop unused types
master
valere
5 月之前
父節點
82d091b28a
當前提交
40649a9507
共有
2 個文件被更改
,包括
1 次插入
和
12 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
nuxt.config.ts
+0
-11
server/api/search/[termspage].ts
+ 1
- 1
nuxt.config.ts
查看文件
@@ -28,7 +28,7 @@ export default defineNuxtConfig({
}
},
typescript: {
typeCheck
: true
strict
: true
},
compatibilityDate: '2024-10-06',
})
+ 0
- 11
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`
Write
Preview
Loading…
取消
儲存