diff --git a/app/blueprints/api/tokens.py b/app/blueprints/api/tokens.py index 03856dab..67731cea 100644 --- a/app/blueprints/api/tokens.py +++ b/app/blueprints/api/tokens.py @@ -34,6 +34,12 @@ class CreateAPIToken(FlaskForm): submit = SubmitField("Save") +@bp.route("/user/tokens/") +@login_required +def list_tokens_redirect(): + return redirect(url_for("api.list_tokens", username=current_user.username)) + + @bp.route("/users//tokens/") @login_required def list_tokens(username):