remotes/1693045480750635534/spooky-22
parent
430f5ed977
commit
4ff21f1a0b
|
@ -25,8 +25,8 @@ IMGUR_KEY = environ.get("IMGUR_KEY", "").strip()
|
|||
@app.get("/imgurcredits")
|
||||
@admin_level_required(6)
|
||||
def imgurcredits(v):
|
||||
req = requests.get('https://api.imgur.com/3/credits', headers = {"Authorization": f"Client-ID {IMGUR_KEY}"})
|
||||
return req.json
|
||||
req = requests.get('https://api.imgur.com/3/credits', headers = {"Authorization": f"Client-ID {IMGUR_KEY}"}).json()
|
||||
return req
|
||||
|
||||
@app.post("/@<username>/make_admin")
|
||||
@admin_level_required(6)
|
||||
|
|
Loading…
Reference in New Issue