NAME

Strehler::Admin - App holding the routes used by Strehler backend

DESCRIPTION

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.

SYNOPSIS

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...)