Sha256: 6204ba3c2153e211d57c376e2ce3619d0468cf1f94756043e5b0d8690a5aadaa

Contents?: true

Size: 894 Bytes

Versions: 14

Compression:

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

14 entries across 14 versions & 2 rubygems

Version Path
masover-castronaut-0.4.4.4 app/controllers/application.rb
masover-castronaut-0.4.4.5 app/controllers/application.rb
masover-castronaut-0.5.0.1 app/controllers/application.rb
relevance-castronaut-0.4.1 app/controllers/application.rb
relevance-castronaut-0.4.2 app/controllers/application.rb
relevance-castronaut-0.4.3 app/controllers/application.rb
relevance-castronaut-0.4.4 app/controllers/application.rb
relevance-castronaut-0.4.5 app/controllers/application.rb
relevance-castronaut-0.4.6 app/controllers/application.rb
relevance-castronaut-0.5.0 app/controllers/application.rb
relevance-castronaut-0.5.1 app/controllers/application.rb
relevance-castronaut-0.5.2 app/controllers/application.rb
relevance-castronaut-0.5.3 app/controllers/application.rb
relevance-castronaut-0.5.4 app/controllers/application.rb