refactor: move api calls to routes folder; feat: add update_banner user-friendly method; fix: change file data type
This commit is contained in:
4
itd/routes/reports.py
Normal file
4
itd/routes/reports.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from itd.request import fetch
|
||||
|
||||
def report(token: str, id: str, type: str = 'post', reason: str = 'other', description: str = ''):
|
||||
return fetch(token, 'post', 'reports', {'targetId': id, 'targetType': type, 'reason': reason, 'description': description})
|
||||
Reference in New Issue
Block a user