fd
This commit is contained in:
parent
454b583f53
commit
ccc9187711
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue