chore/api-prox: add README

This commit is contained in:
Kentai Radiquum 2025-07-08 14:34:15 +05:00
parent dd4772c5cf
commit d71ae186a2
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
7 changed files with 241 additions and 23 deletions

View 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;
}