Ambition.Action.path – ambition Reference Manual
Packages
ambition
Ambition
Action
last_path
methods
targets
Action
add_target
add_target_method
allow_method
path
regex
responds_to_request
_regex
path
Description:
public
Action
path
(
string
path,
bool
with_args =
false
)
Set the path to respond to. Allows named captures (e.g. foo/{bar}/).
Parameters:
path
Full path, adds leading / if not specified.
with_args
Boolean, set to true if you want captures after the path.
Returns:
Instance of this Action