feat: DSL 磁力聚合 — 搜索/解析/预览/投递 + cilisousuo 源 + 中英双语 + Docker 部署
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { mongoStatus } from '../utils/mongo'
|
||||
import { listProviders } from '../utils/search'
|
||||
import { checkWebTorrent } from '../utils/torrent'
|
||||
import { loadSettings } from '../utils/appconfig'
|
||||
|
||||
export default defineEventHandler(async () => {
|
||||
const [mongo, webTorrent, settings] = await Promise.all([mongoStatus(), checkWebTorrent(), loadSettings()])
|
||||
return {
|
||||
ok: true,
|
||||
time: new Date().toISOString(),
|
||||
mongo,
|
||||
webTorrent,
|
||||
providers: listProviders(),
|
||||
enabledProviders: settings.enabledProviders,
|
||||
searchProxy: settings.searchProxy ? '已配置' : '未配置',
|
||||
clients: settings.btClients.map((c) => ({ id: c.id, type: c.type, name: c.name, endpoint: `${c.host}:${c.port}`, enabled: c.enabled !== false }))
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user