diff --git a/lib/LDV.pm b/lib/LDV.pm index 5131b42..190af1f 100644 --- a/lib/LDV.pm +++ b/lib/LDV.pm @@ -25,8 +25,11 @@ sub startup { $r->post('/user/create')->to('actions#create'); # /zerobin - $r->get('/zerobin2')->to('zerobin#view'); - $r->get('/zerobin2/create')->to('zerobin#create'); + my $zb = $r->route('/zerobin2') -> to(controller => 'zerobin'); + $zb->post('/') -> to(action => 'save'); + $zb->get('/') -> to(action => 'create'); + $zb->get('/:id', id => qr/[0-9a-f]{8}/) + -> to(action => 'view'); } 1; diff --git a/public/img/send.png b/public/img/send.png index cd02458..dc1304b 100644 Binary files a/public/img/send.png and b/public/img/send.png differ