Sha256: afa0eddc0052974ef375b02cf050d61a964721a2519505d685c32c84945a36a6

Contents?: true

Size: 721 Bytes

Versions: 12

Compression:

Stored size: 721 Bytes

Contents

require 'pact_broker/ui/controllers/relationships'
require 'pact_broker/ui/controllers/groups'
require 'pact_broker/doc/controllers/app'

module PactBroker
  module UI
    class App

      def initialize
        @app = ::Rack::Builder.new {

          map "/ui/relationships" do
            run PactBroker::UI::Controllers::Relationships
          end

          map "/groups" do
            run PactBroker::UI::Controllers::Groups
          end

          map "/doc" do
            run PactBroker::Doc::Controllers::App
          end

          map "/" do
            run PactBroker::UI::Controllers::Relationships
          end
        }
      end

      def call env
        @app.call(env)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pact_broker-2.6.0 lib/pact_broker/ui/app.rb
pact_broker-2.5.1 lib/pact_broker/ui/app.rb
pact_broker-2.5.0 lib/pact_broker/ui/app.rb
pact_broker-2.4.2 lib/pact_broker/ui/app.rb
pact_broker-2.4.1 lib/pact_broker/ui/app.rb
pact_broker-2.4.0 lib/pact_broker/ui/app.rb
pact_broker-2.3.0 lib/pact_broker/ui/app.rb
pact_broker-2.2.0 lib/pact_broker/ui/app.rb
pact_broker-2.1.1 lib/pact_broker/ui/app.rb
pact_broker-2.1.0 lib/pact_broker/ui/app.rb
pact_broker-2.0.5 lib/pact_broker/ui/app.rb
pact_broker-2.0.4 lib/pact_broker/ui/app.rb