Browse Source

+ $self->app->db

master
Alex 'AdUser' Z 7 years ago
parent
commit
2d012119ab
  1. 7
      lib/LDV.pm

7
lib/LDV.pm

@ -35,6 +35,13 @@ sub startup {
return $ldap; 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; my $r = $self->routes;
{ # /user { # /user

Loading…
Cancel
Save