diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-11-20 11:58:09 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-11-20 11:58:09 +0100 |
commit | 9370d666116a11bd198e57584514d8a6c0e5b284 (patch) | |
tree | 084b322bcb4d855902302650b973d321729c3e67 | |
parent | 4aec7fa70370fcb33ee8c6206427824fd7d46b96 (diff) |
support stations with / in their name
-rw-r--r-- | index.pl | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |