use Dancer2;
use Dancer2::Plugin::Auth::Tiny; # wrap route handlers with an authentication closure
use Dancer2::Plugin::Database; # provide the 'database' keyword for a simple DBI DB handle
use Dancer2::Plugin::Auth::Extensible; # for login, password resets and roles
use Dancer2::Plugin::Auth::Extensible::Provider::Database; # for login, password resets and roles
# From Dancer2::Config: "If neither "PLACK_ENV" or "DANCER_ENVIRONMENT" is set, the environment defaults to development."
set environment => 'development'; # Note: This informs which enviroments/xxx.yml file is used
my $dpae = Dancer2::Plugin::Auth::Extensible::Provider::Database->new(
plugin => app,
);