release: v0.4.0
This commit is contained in:
@@ -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),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user