Top Level Namespace

Defined Under Namespace

Modules: AmberRack Classes: AmberWebApp

Constant Summary collapse

RACK_ROOT =
File.expand_path('..', File.dirname(__FILE__))
AmberApp =
Rack::Builder.new do
  use Rack::ShowExceptions
  use Rack::CommonLogger

  map '/js' do
    run RackDAV::Handler.new(:root => File.expand_path('app/javascripts', RACK_ROOT))
  end

  map '/st' do
    run RackDAV::Handler.new(:root => File.expand_path('app/smalltalk', RACK_ROOT))
  end

  map '/' do
    run AmberWebApp
  end
end