|
|
@ -41,7 +41,7 @@ sub startup { |
|
|
|
my $comm = $r->route('/comments') -> to(controller => 'comments'); |
|
|
|
my $comm = $r->route('/comments') -> to(controller => 'comments'); |
|
|
|
$comm->post('/add') ->to(action => 'add'); |
|
|
|
$comm->post('/add') ->to(action => 'add'); |
|
|
|
$comm->get ('/get') ->to(action => 'get'); |
|
|
|
$comm->get ('/get') ->to(action => 'get'); |
|
|
|
$comm->get ('/new') ->to(action => 'new'); |
|
|
|
$comm->get ('/new') ->to(action => 'create'); |
|
|
|
|
|
|
|
|
|
|
|
mkdir $self->app->home->rel_dir('data/comments'); |
|
|
|
mkdir $self->app->home->rel_dir('data/comments'); |
|
|
|
} |
|
|
|
} |
|
|
|