forked from rDrama/rDrama
another fix
parent
f1b1e6afc4
commit
7356d52edc
|
@ -736,6 +736,12 @@ def is_available(name:str):
|
||||||
else:
|
else:
|
||||||
return {name: True}
|
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>")
|
@app.route("/id/<int:id>/<path:path>")
|
||||||
@limiter.limit(DEFAULT_RATELIMIT)
|
@limiter.limit(DEFAULT_RATELIMIT)
|
||||||
def user_id(id, path):
|
def user_id(id, path):
|
||||||
|
|
Loading…
Reference in New Issue