url_for must reference the blueprint name now.

This commit is contained in:
yackob03 2014-01-30 17:23:14 -05:00
parent f908791154
commit 2ddbad3d39
2 changed files with 7 additions and 5 deletions

View file

@ -1249,7 +1249,8 @@ def create_webhook(namespace, repository):
webhook = model.create_webhook(repo, request.get_json())
resp = jsonify(webhook_view(webhook))
repo_string = '%s/%s' % (namespace, repository)
resp.headers['Location'] = url_for('get_webhook', repository=repo_string,
resp.headers['Location'] = url_for('api.get_webhook',
repository=repo_string,
public_id=webhook.public_id)
log_action('add_repo_webhook', namespace,
{'repo': repository, 'webhook_id': webhook.public_id},