]> git.lizzy.rs Git - cheatdb.git/commitdiff
Fix bad URL construction in GitLab webhooks
authorrubenwardy <rw@rubenwardy.com>
Wed, 3 Jun 2020 15:40:52 +0000 (16:40 +0100)
committerrubenwardy <rw@rubenwardy.com>
Wed, 3 Jun 2020 15:40:52 +0000 (16:40 +0100)
app/blueprints/api/tokens.py

index 03856dabd74ade92e372b6a9e0a1dc0f29615b35..67731ceada576ed7cfe0e82199ef8d703dd22acd 100644 (file)
@@ -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/<username>/tokens/")
 @login_required
 def list_tokens(username):