NAME
Articulate::Role::Routes - allow routes to be enabled
DESCRIPTION
This is a helper role for route classes which works in tandem with Articulate::Syntax::Routes (which allows a declarative style of routing).
Note that it is not mandatory to use either of these, you can use your frameworks's own routing capabiity and merely use Articulate for the service. If you do this, you will need to handle serialisation of Articulate::Response objects yourself.
ATTRIBUTE
enabled
Do not set this directly, use enable
.
METHOD
enable
Finds all that were declared in that package. Note that this does not respect inheritance by searching parent classes, roles, etc. for routes declared there: only routes defined in the package to which this role is applied will be enabled.