Fix bad URL construction in GitLab webhooks

This commit is contained in:
rubenwardy 2020-06-03 16:40:52 +01:00
parent 7f650a619e
commit 27d004d299
1 changed files with 6 additions and 0 deletions

View 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):