Method: Yake::API::DSL#get

Defined in:
lib/yake/api.rb

#get(path, &block) ⇒ Object

Define GET route



72
73
74
# File 'lib/yake/api.rb', line 72

def get(path, &block)
  define_singleton_method("GET #{ path }") { |*args| instance_exec(*args, &block) }
end