Module: PhobosCheckpointUI::App

Defined in:
lib/phobos_checkpoint_ui/app.rb

Class Method Summary collapse

Class Method Details

.new(api_app, configs = {}) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/phobos_checkpoint_ui/app.rb', line 3

def self.new(api_app, configs = {})
  StaticApp.configs = configs
  Rack::URLMap.new(
    '/' => StaticApp,
    '/ping' => Proc.new { |env| ['200', { 'Content-Type' => 'text/plain' }, ['PONG']] },
    '/api' => api_app
  )
end