master
Aevann1 2021-09-02 15:29:36 +02:00
parent 0bd32529bd
commit 01a51422b8
1 changed files with 8 additions and 0 deletions

View File

@ -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):