fix: Update metacritic API root URL (#14497)

This commit is contained in:
moppman
2024-02-19 22:48:41 +08:00
committed by GitHub
parent 58a1e11dfa
commit 37ae90fc79
+1 -1
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);