release: v0.4.0

This commit is contained in:
2026-05-18 05:11:57 +08:00
parent b758391861
commit da5bd01535
147 changed files with 8876 additions and 6941 deletions

View File

@@ -1,3 +1,4 @@
import { TMDB_API_HOST, EP as TE } from '../content/tmdb-api';
import { Router, Request, Response } from 'express';
// Native fetch available in Node 20+
import fs from "fs";
@@ -512,7 +513,7 @@ router.post('/admin/test-external-service', async (req: Request, res: Response)
res.json({ ok: false, info: 'TMDB API Key not configured' });
return;
}
const response = await fetch('https://api.themoviedb.org/3/configuration', {
const response = await fetch(TMDB_API_HOST + TE.CONFIGURATION, {
headers: { Authorization: `Bearer ${tmdbToken}` },
signal: AbortSignal.timeout(8000),
});