From 27d004d2999dd5a03838d6aa59bdd6e2ff882746 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 3 Jun 2020 16:40:52 +0100 Subject: [PATCH] Fix bad URL construction in GitLab webhooks --- app/blueprints/api/tokens.py | 6 ++++++ 1 file changed, 6 insertions(+) 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):