module ActionDispatch::Routing::Mapper::HttpHelpers

def post(*args, &block)

post 'bacon', to: 'food#bacon'

For supported arguments, see match[rdoc-ref:Base#match]
Define a route that only recognizes HTTP POST.
def post(*args, &block)
  map_method(:post, args, &block)
end