Parent Directory | Revision Log
partly added login and logout from wifty
1 | dpavlin | 5 | package Transports::Dispatcher; |
2 | use Jifty::Dispatcher -base; | ||
3 | |||
4 | # Default page | ||
5 | on '/', run { | ||
6 | redirect( '/transport'); | ||
7 | }; | ||
8 | |||
9 | # Login | ||
10 | on 'login', run { | ||
11 | set 'action' => | ||
12 | Jifty->web->new_action( class => 'Login', moniker => 'loginbox' ); | ||
13 | set 'next' => Jifty->web->request->continuation | ||
14 | || Jifty::Continuation->new( | ||
15 | request => Jifty::Request->new( path => "/" ) ); | ||
16 | }; | ||
17 | |||
18 | # Log out | ||
19 | before 'logout', run { | ||
20 | Jifty->web->request->add_action( | ||
21 | moniker => 'logout', | ||
22 | class => 'Transports::Action::Logout' | ||
23 | ); | ||
24 | }; | ||
25 | |||
26 | 1; |
ViewVC Help | |
Powered by ViewVC 1.1.26 |