Class: Zodra::Router

Inherits:
Object
  • Object
show all
Defined in:
lib/zodra/router.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.draw(context) ⇒ Object



5
6
7
# File 'lib/zodra/router.rb', line 5

def self.draw(context)
  new.draw(context)
end

Instance Method Details

#draw(context) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/zodra/router.rb', line 9

def draw(context)
  Zodra.load_definitions!

  ApiRegistry.global.each do |api_definition|
    draw_api(context, api_definition)
  end
end