fix: Bump API version

This commit is contained in:
oSumAtrIX 2024-11-10 15:59:16 +01:00
parent 68f8c1fd59
commit 582d51e394
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -27,18 +27,18 @@ async function get_json(endpoint: string) {
} }
async function contributors(): Promise<ContributorsData> { async function contributors(): Promise<ContributorsData> {
const json = await get_json('v3/contributors'); const json = await get_json('v4/contributors');
return { contributables: json }; return { contributables: json };
} }
async function manager(): Promise<ReleaseData> { async function manager(): Promise<ReleaseData> {
const json = await get_json('v3/manager'); const json = await get_json('v4/manager');
return { release: json }; return { release: json };
} }
async function patches(): Promise<PatchesData> { async function patches(): Promise<PatchesData> {
const json = await get_json('v3/patches/list'); const json = await get_json('v4/patches/list');
const packagesWithCount: { [key: string]: number } = {}; const packagesWithCount: { [key: string]: number } = {};
json.forEach((patch) => { json.forEach((patch) => {
@ -65,12 +65,12 @@ async function patches(): Promise<PatchesData> {
} }
async function team(): Promise<TeamData> { async function team(): Promise<TeamData> {
const json = await get_json('v3/team'); const json = await get_json('v4/team');
return { members: json }; return { members: json };
} }
async function about(): Promise<AboutData> { async function about(): Promise<AboutData> {
const json = await get_json('v3/about'); const json = await get_json('v4/about');
return { about: json }; return { about: json };
} }