Router class is typically instantiated via the
Installs an action global to the router.
Prefixes every route (and even global actions) with a given prefix.
route(string $method, string $uri, callable|\Aerys\Middleware|\Aerys\Bootable ...$actions): self
Installs a route to be matched on a given
In case of match, the route middlewares will be installed (including global
use()‘d middlewares) in the order they were defined. Similar for the chain of application callables.
$method(string $uri, callable|\Aerys\Middleware|\Aerys\Bootable ...$actions): self (aka
Forwards the call to
route($method, $uri, $actions). (E.g.
get("/", $action) is equivalent to
route("GET", "/", $action).)