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