Sha256: 7a0ba6b518697e8e3585653420511cdb1b3ad0e08dc26befa5599c67b8830001

Contents?: true

Size: 548 Bytes

Versions: 72

Compression:

Stored size: 548 Bytes

Contents

Foreman::Application.routes.draw do
  class BastionPagesConstraint
    def matches?(request)
      pages.include?(request.params[:bastion_page])
    end

    private

    def pages
      pages = Bastion.plugins.collect { |_name, plugin| plugin[:pages] }
      pages.flatten
    end
  end

  get '/content_hosts/register', to: redirect('/hosts/register')

  scope :module => :bastion do
    get '/:bastion_page/(*path)', :to => "bastion#index", constraints: BastionPagesConstraint.new
    get '/bastion/(*path)', :to => "bastion#index_ie"
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
katello-4.7.3 engines/bastion/config/routes.rb
katello-4.7.2 engines/bastion/config/routes.rb
katello-4.7.1 engines/bastion/config/routes.rb
katello-4.6.2.1 engines/bastion/config/routes.rb
katello-4.6.2 engines/bastion/config/routes.rb
katello-4.7.0 engines/bastion/config/routes.rb
katello-4.6.1 engines/bastion/config/routes.rb
katello-4.7.0.rc2 engines/bastion/config/routes.rb
katello-4.7.0.rc1 engines/bastion/config/routes.rb
katello-4.4.2.2 engines/bastion/config/routes.rb
katello-4.4.2.1 engines/bastion/config/routes.rb
katello-4.4.2 engines/bastion/config/routes.rb
katello-4.5.1 engines/bastion/config/routes.rb
katello-4.6.0 engines/bastion/config/routes.rb
katello-4.6.0.rc2 engines/bastion/config/routes.rb
katello-4.6.0.rc1 engines/bastion/config/routes.rb
katello-4.5.0 engines/bastion/config/routes.rb
katello-4.5.0.rc2 engines/bastion/config/routes.rb
katello-4.4.1 engines/bastion/config/routes.rb
katello-4.5.0.rc1 engines/bastion/config/routes.rb