summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-11-20 11:58:09 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-11-20 11:58:09 +0100
commit9370d666116a11bd198e57584514d8a6c0e5b284 (patch)
tree084b322bcb4d855902302650b973d321729c3e67
parent4aec7fa70370fcb33ee8c6206427824fd7d46b96 (diff)
support stations with / in their name
-rw-r--r--index.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.pl b/index.pl
index db0abd2..1cea291 100644
--- a/index.pl
+++ b/index.pl
@@ -641,10 +641,10 @@ get '/_redirect' => sub {
};
get '/' => \&handle_request;
-get '/:city/(:stop).html' => \&render_html;
-get '/:city/(:stop).json' => \&render_json;
-get '/:city/(:stop).png' => \&render_image;
-get '/:city/:stop' => \&handle_request;
+get '/:city/(*stop).html' => \&render_html;
+get '/:city/(*stop).json' => \&render_json;
+get '/:city/(*stop).png' => \&render_image;
+get '/:city/*stop' => \&handle_request;
get '/(:stop).html' => \&render_html;
get '/(:stop).json' => \&render_json;
get '/(:stop).png' => \&render_image;