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