add feature.BITTORRENT and jwk set URI

This commit is contained in:
Jimmy Zelinskie 2016-01-07 19:07:23 -05:00
parent f774442a84
commit 087c6828ad
4 changed files with 53 additions and 29 deletions

View file

@ -22,6 +22,9 @@ from util.registry.gzipstream import SizeInfo
from formats.squashed import SquashedDockerImage
from formats.aci import ACIImage
from endpoints.v2.blob import BLOB_DIGEST_ROUTE
from endpoints.common import route_show_if
import features
verbs = Blueprint('verbs', __name__)
@ -294,6 +297,7 @@ def get_squashed_tag(namespace, repository, tag):
return _repo_verb(namespace, repository, tag, 'squash', SquashedDockerImage())
@route_show_if(features.BITTORRENT)
@anon_protect
@verbs.route('/torrent{0}'.format(BLOB_DIGEST_ROUTE), methods=['GET'])
@process_auth