Browse Source

* zerobin routes

master
Alex "AdUser" Z 10 years ago
parent
commit
88e93964e3
  1. 7
      lib/LDV.pm
  2. BIN
      public/img/send.png

7
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;

BIN
public/img/send.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 B

After

Width:  |  Height:  |  Size: 343 B

Loading…
Cancel
Save