fix: Update metacritic API root URL (#14497)

This commit is contained in:
moppman 2024-02-19 15:48:41 +01:00 committed by GitHub
parent 58a1e11dfa
commit 37ae90fc79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module.exports = async (ctx) => {
const limit = ctx.query.limit ? Number.parseInt(ctx.query.limit, 10) : 50;
const rootUrl = 'https://www.metacritic.com';
const rootApiUrl = 'https://fandom-prod.apigee.net';
const rootApiUrl = 'https://internal-prod.apigee.fandom.net';
const apiUrl = new URL('v1/xapi/finder/metacritic/web', rootApiUrl).href;
const currentUrlObject = new URL(`/browse/${type}/all/all/all-time/${sort}/${filter ? `?${filter}` : ''}`, rootUrl);