forked from rDrama/rDrama
1
0
Fork 0

another fix

master
Aevann 2023-07-12 04:07:58 +03:00
parent f1b1e6afc4
commit 7356d52edc
1 changed files with 6 additions and 0 deletions

View File

@ -736,6 +736,12 @@ def is_available(name:str):
else:
return {name: True}
@app.get("/id/<int:id>")
@limiter.limit(DEFAULT_RATELIMIT)
def user_id(id):
user = get_account(id)
return redirect(user.url)
@app.route("/id/<int:id>/<path:path>")
@limiter.limit(DEFAULT_RATELIMIT)
def user_id(id, path):