summaryrefslogtreecommitdiff
path: root/cgi/index.pl
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/index.pl')
-rw-r--r--cgi/index.pl10
1 files changed, 8 insertions, 2 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index a8c9f25..23f08f3 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -33,10 +33,10 @@ get '/' => sub {
if ( not $station ) {
return $self->render;
}
- $self->redirect_to("/multi/${station}");
+ $self->redirect_to("/${station}");
} => 'index';
-get '/multi/:station' => sub {
+get '/:station' => sub {
my $self = shift;
my $station = $self->stash('station');
@@ -73,6 +73,12 @@ get '/multi/:station' => sub {
$self->render( text => $template->output );
};
+get '/multi/:station' => sub {
+ my $self = shift;
+ my $station = $self->stash('station');
+ $self->redirect_to("/${station}");
+};
+
app->start();
__DATA__