@ -28,8 +28,8 @@ sub startup {
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');
$zb->route('/:id', id => qr/[0-9a-f]+/)
->via('GET') -> to(action => 'view');
}
1;