Strehler::Admin - App holding the routes used by Strehler backend
Strehler::Admin holds all the routes used by Strehler to erogate views. It also contains some helpers, mostly about form management, called inside routes.
The use of the Strehler::Dancer2::Plugin::Admin makes all the routes to have /admin as prefix.
Routes have the structure:
/entity/action/id
Where entity represent a Strehler::Element class, action is usually a standard action of a CRUD interface and id (where needed) is the identifier of the object cosidered.
Strehler::Admin is just a Dancer2 app so you need to add it to your bin/app.pl script to use it.
#!/usr/bin/env perl use FindBin; use lib "$FindBin::Bin/../lib"; use Site; use Strehler::Admin; Site->dance;
Never add the use Strehler::Admin line as the first App included to not mess with site directories (public, lib...)
use Strehler::Admin
To install Strehler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Strehler
CPAN shell
perl -MCPAN -e shell install Strehler
For more information on module installation, please visit the detailed CPAN module installation guide.