/[Arh]/lib/Arh/Dispatcher.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /lib/Arh/Dispatcher.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (hide annotations)
Sun Apr 6 18:31:14 2008 UTC (16 years ago) by dpavlin
File size: 501 byte(s)
more cleanup of URLs
1 dpavlin 6 package Arh::Dispatcher;
2    
3     use strict;
4     use warnings;
5    
6     use Jifty::Dispatcher -base;
7    
8     use Data::Dump qw/dump/;
9    
10     before '*' => run {
11     my $top = Jifty->web->navigation;
12     my $user = Jifty->web->current_user;
13    
14     #set user => $user;
15     #warn "##### ",dump( $user );
16    
17 dpavlin 47 $top->child( _('Units') => url => '/units' );
18    
19 dpavlin 37 if ( $user->id ) {
20     $top->child( _('Pictures') => url => '/pictures' );
21     }
22    
23 dpavlin 6 };
24    
25 dpavlin 51 on qr{/pictures/show/(.+)$} => run {
26     warn "## showing raw_pic $1\n";
27     set filename => $1;
28     show 'raw_pic';
29     };
30    
31 dpavlin 6 1;

  ViewVC Help
Powered by ViewVC 1.1.26