mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-05 22:15:36 +05:00
chore/api-prox: add README
This commit is contained in:
parent
dd4772c5cf
commit
d71ae186a2
7 changed files with 241 additions and 23 deletions
12
api-prox/hooks/profile.sponsor.ts
Normal file
12
api-prox/hooks/profile.sponsor.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
// хук включает "вечную" спонсорку, отключая рекламу после входа в профиль, в официальном приложении
|
||||
|
||||
export function match(path: string): boolean {
|
||||
if (path == "/profile/info") return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
export async function get(data: any, url: URL) {
|
||||
data["is_sponsor"] = true;
|
||||
data["sponsorship_expires"] = 2147483647;
|
||||
return data;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue