App: allow blob pull

This commit is contained in:
Antoine Legrand 2017-05-19 12:48:02 +02:00
parent 86bcbd1225
commit f558b1728d

View file

@ -158,7 +158,8 @@ def pull(namespace, package_name, release, media_type):
data = cnr_registry.pull(reponame, release, media_type, Package, blob_class=Blob)
model.log_action('pull_repo', namespace, repo_name=package_name,
metadata={'release': release, 'mediatype': media_type})
return _pull(data)
json_format = request.args.get('format', None) == 'json'
return _pull(data, json_format)
@appr_bp.route("/api/v1/packages/<string:namespace>/<string:package_name>", methods=['POST'],