fix: Update metacritic apiURL (#19445)

This commit is contained in:
moppman 2025-06-24 13:25:35 +02:00 committed by GitHub
parent 19ce42fe74
commit 646f4e6851
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ async function handler(ctx) {
const rootUrl = 'https://www.metacritic.com';
const rootApiUrl = 'https://backend.metacritic.com';
const apiUrl = new URL('v1/xapi/finder/metacritic/web', rootApiUrl).href;
const apiUrl = new URL('finder/metacritic/web', rootApiUrl).href;
const currentUrlObject = new URL(`/browse/${type}/all/all/all-time/${sort}/${filter ? `?${filter}` : ''}`, rootUrl);
const currentUrlParams = currentUrlObject.searchParams;