Method: Yake::API::DSL#post

Defined in:
lib/yake/api.rb

#post(path, &block) ⇒ Object

Define POST route



96
97
98
# File 'lib/yake/api.rb', line 96

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