mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 14:14:30 +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> {
|
||||
const json = await get_json('v3/contributors');
|
||||
const json = await get_json('v4/contributors');
|
||||
return { contributables: json };
|
||||
}
|
||||
|
||||
async function manager(): Promise<ReleaseData> {
|
||||
const json = await get_json('v3/manager');
|
||||
const json = await get_json('v4/manager');
|
||||
|
||||
return { release: json };
|
||||
}
|
||||
|
||||
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 } = {};
|
||||
|
||||
json.forEach((patch) => {
|
||||
@ -65,12 +65,12 @@ async function patches(): Promise<PatchesData> {
|
||||
}
|
||||
|
||||
async function team(): Promise<TeamData> {
|
||||
const json = await get_json('v3/team');
|
||||
const json = await get_json('v4/team');
|
||||
return { members: json };
|
||||
}
|
||||
|
||||
async function about(): Promise<AboutData> {
|
||||
const json = await get_json('v3/about');
|
||||
const json = await get_json('v4/about');
|
||||
return { about: json };
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user