post(*args, &block)
public

Define a route that only recognizes HTTP POST. For supported arguments, see match.

Example:

post ‘bacon’, :to => ‘food#bacon’