fd
This commit is contained in:
parent
e780d2e744
commit
1ba0479bde
1 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,14 @@ from files.__main__ import app, cache, limiter
|
|||
from .front import frontlist
|
||||
from files.helpers.discord import add_role
|
||||
|
||||
IMGUR_KEY = environ.get("IMGUR_KEY", "").strip()
|
||||
|
||||
@app.get("/imgurcredits")
|
||||
@admin_level_required(6)
|
||||
def imgurcredits(v):
|
||||
req = requests.post('https://api.imgur.com/3/credits', headers = {"Authorization": f"Client-ID {IMGUR_KEY}"})
|
||||
return req.json
|
||||
|
||||
@app.post("/@<username>/make_admin")
|
||||
@admin_level_required(6)
|
||||
def make_admin(v, username):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue