$baseUri
$baseUri : string
Base URI to attach route to
REST HTTP Route
This class and its decendents map requests to controller actions differently than a normal HTTP route.
For example, this is how a REST Route attached to /examples would route the following requests:
isValid(\LiftKit\Request\Request $request) : boolean
Returns whether the route matches the supplied request
\LiftKit\Request\Request | $request |
execute(\LiftKit\Request\Request $request) : \LiftKit\Response\Response
Executes callback with supplied Request
\LiftKit\Request\Request | $request |
__construct(callable $condition, callable $callback)
Constructor
callable | $condition | Callback that takes a Request as a parameter and returns a boolean indicating whether the Route matches |
callable | $callback | Callback that represents the action to be taken if the route matches, takes a Request as a parameter |