mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 22:24:31 +02:00
fix: Bump API version
This commit is contained in:
parent
68f8c1fd59
commit
582d51e394
@ -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 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user