Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (21 sloc) 0.579 kb
use strict;
use warnings;
package DvdDatabase::Controller;
use base 'WebNano::Controller';
sub index_action {
my $self = shift;
my $res = $self->req->new_response();
$res->redirect( '/Dvd/' );
return $res;
sub session_check_action {
my $self = shift;
my $session = $self->env->{'psgix.session'};
return "Hello, you've been here for ". ( 1 + $session->{counter}++ ). "th time!";
sub user_action {
my $self = shift;
return "Current user is " . $self->env->{user}->username if $self->env->{user};
return "No user logged in";
Jump to Line
Something went wrong with that request. Please try again.