chore: Migrate from deprecated endpoints

This commit is contained in:
Ushie 2024-09-07 05:38:59 +03:00
parent 6401aa381e
commit 27fabe2a79
No known key found for this signature in database
GPG Key ID: B3AAD18842E34632

View File

@ -32,13 +32,13 @@ async function contributors(): Promise<ContributorsData> {
} }
async function manager(): Promise<ReleaseData> { async function manager(): Promise<ReleaseData> {
const json = await get_json('v3/manager/latest'); const json = await get_json('v3/manager');
return { release: json }; return { release: json };
} }
async function patches(): Promise<PatchesData> { async function patches(): Promise<PatchesData> {
const json = await get_json('v3/patches/latest/list'); const json = await get_json('v3/patches/list');
const packagesWithCount: { [key: string]: number } = {}; const packagesWithCount: { [key: string]: number } = {};
// gets packages and patch count // gets packages and patch count