Browse Source

* zerobin : tweak routes

master
Alex "AdUser" Z 10 years ago
parent
commit
ea7f636b82
  1. 4
      lib/LDV.pm

4
lib/LDV.pm

@ -28,8 +28,8 @@ sub startup {
my $zb = $r->route('/zerobin2') -> to(controller => 'zerobin'); my $zb = $r->route('/zerobin2') -> to(controller => 'zerobin');
$zb->post('/') -> to(action => 'save'); $zb->post('/') -> to(action => 'save');
$zb->get('/') -> to(action => 'create'); $zb->get('/') -> to(action => 'create');
$zb->get('/:id', id => qr/[0-9a-f]{8}/) $zb->route('/:id', id => qr/[0-9a-f]+/)
-> to(action => 'view'); ->via('GET') -> to(action => 'view');
} }
1; 1;

Loading…
Cancel
Save