refactor: move api calls to routes folder; feat: add update_banner user-friendly method; fix: change file data type

This commit is contained in:
firedotguy
2026-01-30 15:16:29 +03:00
parent d27db1d905
commit 49427a5535
13 changed files with 27 additions and 14 deletions

10
itd/routes/etc.py Normal file
View File

@@ -0,0 +1,10 @@
from itd.request import fetch
def get_top_clans(token: str):
return fetch(token, 'get', 'users/stats/top-clans')
def get_who_to_follow(token: str):
return fetch(token, 'get', 'users/suggestions/who-to-follow')
def get_platform_status(token: str):
return fetch(token, 'get', 'platform/status')