Sha256: e7eae33626ac2bb9bd4d711411f117dcb552a4ce9a21c3b40365d55184afc27c
Contents?: true
Size: 885 Bytes
Versions: 3
Compression:
Stored size: 885 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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
p8-castronaut-0.6.1.1 | app/controllers/application.rb |
relevance-castronaut-0.6.0 | app/controllers/application.rb |
relevance-castronaut-0.6.1 | app/controllers/application.rb |