| 1 | package Web::App::Test; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | |||
| 5 | use Class::Easy; | ||
| 6 | |||
| 7 | sub list_items { | ||
| 8 | my $class = shift; | ||
| 9 | my $app = shift; | ||
| 10 | my $params = shift; | ||
| 11 | |||
| 12 | debug "inside"; | ||
| 13 | |||
| 14 | $app->var->{test} = {yea => 1}; | ||
| 15 | } | ||
| 16 | |||
| 17 | sub auth_method { | ||
| 18 | my $self = shift; | ||
| 19 | |||
| 20 | return "auth_cookie"; | ||
| 21 | } | ||
| 22 | |||
| 23 | sub redirect { | ||
| 24 | my $class = shift; | ||
| 25 | my $app = shift; | ||
| 26 | my $params = shift; | ||
| 27 | |||
| 28 | debug "redirecting"; | ||
| 29 | |||
| 30 | $app->redirect_to_screen (''); | ||
| 31 | } | ||
| 32 | |||
| 33 | 1; |