@ -35,6 +35,13 @@ sub startup {
return $ldap;
});
$self->app->attr(db => sub {
require LDV::DB;
my $db = LDV::DB->new($self->app->config->{db});
$db->connect;
return $db;
my $r = $self->routes;
{ # /user