Sha256: dd5bd896fe2129cd073956118c8d95a42200406b86251c186a519b08d8bf42c5

Contents?: true

Size: 482 Bytes

Versions: 94

Compression:

Stored size: 482 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

  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

94 entries across 94 versions & 1 rubygems

Version Path
katello-4.2.2 engines/bastion/config/routes.rb
katello-4.2.1 engines/bastion/config/routes.rb
katello-4.2.0.1 engines/bastion/config/routes.rb
katello-4.1.4 engines/bastion/config/routes.rb
katello-4.0.3 engines/bastion/config/routes.rb
katello-4.2.0.1.rc3 engines/bastion/config/routes.rb
katello-3.18.5 engines/bastion/config/routes.rb
katello-4.2.0.1.rc2 engines/bastion/config/routes.rb
katello-4.2.0.rc2 engines/bastion/config/routes.rb
katello-4.1.3 engines/bastion/config/routes.rb
katello-4.2.0.rc1 engines/bastion/config/routes.rb
katello-4.0.2.1 engines/bastion/config/routes.rb
katello-4.1.2.1 engines/bastion/config/routes.rb
katello-4.0.2 engines/bastion/config/routes.rb
katello-4.1.2 engines/bastion/config/routes.rb
katello-3.18.4 engines/bastion/config/routes.rb
katello-4.1.1 engines/bastion/config/routes.rb
katello-4.1.0 engines/bastion/config/routes.rb
katello-4.0.1.2 engines/bastion/config/routes.rb
katello-3.18.3.1 engines/bastion/config/routes.rb