Sha256: 6a342d21681929ab294747f2f1f6dbfd0a4c65ff1a9314a9efb8891200391f0d

Contents?: true

Size: 1.76 KB

Versions: 149

Compression:

Stored size: 1.76 KB

Contents

require 'katello/api/mapper_extensions'

class ActionDispatch::Routing::Mapper
  include Katello::Routing::MapperExtensions
end

Katello::Engine.routes.draw do
  scope :module => :api do
    scope :module => :registry, :constraints => { :tag => /[0-9a-zA-Z\-_.:]*/, :digest => /[0-9a-zA-Z:]*/ } do
      match '/v2/token' => 'registry_proxies#token', :via => :get
      match '/v2/token' => 'registry_proxies#token', :via => :post
      match '/v2/*repository/manifests/:tag' => 'registry_proxies#pull_manifest', :via => :get
      match '/v2/*repository/manifests/:tag' => 'registry_proxies#push_manifest', :via => :put
      match '/v2/*repository/blobs/:digest' => 'registry_proxies#pull_blob', :via => :get
      match '/v2/*repository/blobs/:digest' => 'registry_proxies#check_blob', :via => :head
      match '/v2/*repository/blobs/uploads' => 'registry_proxies#start_upload_blob', :via => :post
      match '/v2/*repository/blobs/uploads/:uuid' => 'registry_proxies#chunk_upload_blob', :via => :post
      match '/v2/*repository/blobs/uploads/:uuid' => 'registry_proxies#finish_upload_blob', :via => :put
      match '/v2/*repository/blobs/uploads/:uuid' => 'registry_proxies#upload_blob', :via => :patch
      match '/v2/*repository/blobs/uploads/:uuid' => 'registry_proxies#status_upload_blob', :via => :get
      match '/v2/*repository/blobs/uploads/:uuid' => 'registry_proxies#cancel_upload_blob', :via => :delete
      match '/v2/_catalog' => 'registry_proxies#catalog', :via => :get
      match '/v2/*repository/tags/list' => 'registry_proxies#tags_list', :via => :get
      match '/v2' => 'registry_proxies#ping', :via => :get
      match '/v1/_ping' => 'registry_proxies#v1_ping', :via => :get
      match '/v1/search' => 'registry_proxies#v1_search', :via => :get
    end
  end
end

Version data entries

149 entries across 149 versions & 1 rubygems

Version Path
katello-4.0.1 config/routes/api/registry.rb
katello-4.1.0.rc1.1 config/routes/api/registry.rb
katello-4.1.0.rc1 config/routes/api/registry.rb
katello-4.0.0 config/routes/api/registry.rb
katello-4.0.0.rc3.1 config/routes/api/registry.rb
katello-4.0.0.rc3 config/routes/api/registry.rb
katello-3.18.2.1 config/routes/api/registry.rb
katello-3.18.2 config/routes/api/registry.rb
katello-3.17.3 config/routes/api/registry.rb
katello-4.0.0.rc2 config/routes/api/registry.rb
katello-3.18.1.1 config/routes/api/registry.rb
katello-3.17.2 config/routes/api/registry.rb
katello-4.0.0.rc1 config/routes/api/registry.rb
katello-3.18.1 config/routes/api/registry.rb
katello-3.18.0 config/routes/api/registry.rb
katello-3.17.1 config/routes/api/registry.rb
katello-3.16.2 config/routes/api/registry.rb
katello-3.18.0.rc2.1 config/routes/api/registry.rb
katello-3.18.0.rc2 config/routes/api/registry.rb
katello-3.17.0 config/routes/api/registry.rb