Class: RubyHome::HTTP::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_home/http/application.rb

Class Method Summary collapse

Class Method Details

.rack_builderObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/ruby_home/http/application.rb', line 6

def self.rack_builder
  ::Rack::Builder.new do
    map("/accessories") { run AccessoriesController }
    map("/characteristics") { run CharacteristicsController }
    map("/identify") { run IdentifyController }
    map("/pair-setup") { run PairSetupsController }
    map("/pair-verify") { run PairVerifiesController }
    map("/pairings") { run PairingsController }
  end
end