feat: add pins
This commit is contained in:
10
itd/routes/pins.py
Normal file
10
itd/routes/pins.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from itd.request import fetch
|
||||
|
||||
def get_pins(token: str):
|
||||
return fetch(token, 'get', 'users/me/pins')
|
||||
|
||||
def remove_pin(token: str):
|
||||
return fetch(token, 'delete', 'users/me/pin')
|
||||
|
||||
def set_pin(token: str, slug: str):
|
||||
return fetch(token, 'put', 'users/me/pin', {'slug': slug})
|
||||
Reference in New Issue
Block a user