stuff
This commit is contained in:
@@ -4,6 +4,7 @@ use 5.036;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use DDP;
|
||||
|
||||
use Plack::Builder;
|
||||
use Plack::Session::Store::DBI;
|
||||
@@ -28,11 +29,13 @@ my $conn = DBIx::Connector->new(
|
||||
$db_conf->get('password')
|
||||
);
|
||||
|
||||
my $router = CW::Router->new();
|
||||
$router->get('/')->action('Index#index');
|
||||
|
||||
CW::Migration->migrate( $conn->dbh );
|
||||
|
||||
my $router = CW::Router->new();
|
||||
|
||||
$router->get('/')->action('Index#index');
|
||||
$router->get('/{board}')->action('Board#index');
|
||||
|
||||
builder {
|
||||
enable 'Session', store => Plack::Session::Store::DBI->new(
|
||||
get_dbh => sub {
|
||||
|
||||
Reference in New Issue
Block a user