Sha256: 02dcf0fddcc29bf395cb7425f4a9573b69811407e2532594936c423e493e95ca
Contents?: true
Size: 895 Bytes
Versions: 5
Compression:
Stored size: 895 Bytes
Contents
get '/' do redirect '/login' end get '/login' do no_cache @presenter = Castronaut::Presenters::Login.new(self) @presenter.represent! @presenter.your_mission.call end post '/login' do @presenter = Castronaut::Presenters::ProcessLogin.new(self) @presenter.represent! @presenter.your_mission.call end get '/logout' do @presenter = Castronaut::Presenters::Logout.new(self) @presenter.represent! @presenter.your_mission.call end get '/serviceValidate' do @presenter = Castronaut::Presenters::ServiceValidate.new(self) @presenter.represent! @presenter.your_mission.call end get '/proxyValidate' do @presenter = Castronaut::Presenters::ProxyValidate.new(self) @presenter.represent! @presenter.your_mission.call end private def no_cache headers 'Pragma' => 'no-cache', 'Cache-Control' => 'no-store', 'Expires' => (Time.now - 5.years).rfc2822 end
Version data entries
5 entries across 5 versions & 1 rubygems