define_method
Add a route for this HTTP method.
Signature
-
parameter
pathString The absolute path to match.
-
yields
{|request, parameters| ...} The route handler.
-
returns
Router The router.
define_method
Add a route for this HTTP method.
path StringThe absolute path to match.
{|request, parameters| ...}The route handler.
RouterThe router.