From 9370d666116a11bd198e57584514d8a6c0e5b284 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 20 Nov 2016 11:58:09 +0100 Subject: support stations with / in their name --- index.pl | 8 ++++---- 1 file 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; -- cgit v1.2.3