add feature.BITTORRENT and jwk set URI
This commit is contained in:
parent
f774442a84
commit
087c6828ad
4 changed files with 53 additions and 29 deletions
|
@ -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
|
||||
|
|
Reference in a new issue