$baseUri
$baseUri : string
Base URI to attach route to
REST Controller HTTP Route
A route for attaching a REST Controller to a base URI, but it takes request methods into account.
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 $baseUri, \LiftKit\Controller\RestInterface $controller)
Constructor
callable | $baseUri | Base URI to attach route to |
\LiftKit\Controller\RestInterface | $controller | Controller to attach |