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

4
itd/routes/search.py Normal file
View File

@@ -0,0 +1,4 @@
from itd.request import fetch
def search(token: str, query: str, user_limit: int = 5, hashtag_limit: int = 5):
return fetch(token, 'get', 'search', {'userLimit': user_limit, 'hashtagLimit': hashtag_limit, 'q': query})