mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-11 05:36:17 +00:00
fix: Bump API version
This commit is contained in:
@@ -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 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user