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.11.0.rc2 engines/bastion/config/routes.rb
katello-4.11.0.rc1 engines/bastion/config/routes.rb
katello-4.10.0 engines/bastion/config/routes.rb
katello-4.9.2 engines/bastion/config/routes.rb
katello-4.10.0.rc2 engines/bastion/config/routes.rb
katello-4.10.0.rc1 engines/bastion/config/routes.rb
katello-4.8.4 engines/bastion/config/routes.rb
katello-4.9.1 engines/bastion/config/routes.rb
katello-4.8.3 engines/bastion/config/routes.rb
katello-4.9.0 engines/bastion/config/routes.rb
katello-4.7.6 engines/bastion/config/routes.rb
katello-4.8.2 engines/bastion/config/routes.rb
katello-4.9.0.rc2 engines/bastion/config/routes.rb
katello-4.9.0.rc1 engines/bastion/config/routes.rb
katello-4.8.1 engines/bastion/config/routes.rb
katello-4.7.5 engines/bastion/config/routes.rb
katello-4.8.0 engines/bastion/config/routes.rb
katello-4.8.0.rc2 engines/bastion/config/routes.rb
katello-4.7.4 engines/bastion/config/routes.rb
katello-4.8.0.rc1 engines/bastion/config/routes.rb