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.14.2 engines/bastion/config/routes.rb
katello-4.15.0 engines/bastion/config/routes.rb
katello-4.15.0.rc2 engines/bastion/config/routes.rb
katello-4.15.0.rc1 engines/bastion/config/routes.rb
katello-4.14.1 engines/bastion/config/routes.rb
katello-4.14.0 engines/bastion/config/routes.rb
katello-4.14.0.rc3 engines/bastion/config/routes.rb
katello-4.14.0.rc2 engines/bastion/config/routes.rb
katello-4.14.0.rc1.1 engines/bastion/config/routes.rb
katello-4.14.0.rc1 engines/bastion/config/routes.rb
katello-4.13.1 engines/bastion/config/routes.rb
katello-4.13.0 engines/bastion/config/routes.rb
katello-4.12.1 engines/bastion/config/routes.rb
katello-4.13.0.rc1 engines/bastion/config/routes.rb
katello-4.12.0 engines/bastion/config/routes.rb
katello-4.12.0.rc3 engines/bastion/config/routes.rb
katello-4.12.0.rc2 engines/bastion/config/routes.rb
katello-4.12.0.rc1 engines/bastion/config/routes.rb
katello-4.11.1 engines/bastion/config/routes.rb
katello-4.11.0 engines/bastion/config/routes.rb