summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-07-19 16:59:26 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-07-19 16:59:26 +0200
commit77512f64b3e4915bfa4bc783e384f458bc2f99be (patch)
tree04c4763204193756243a8ed13e95230dba0cd1fa
parent5b6bfde69be2be03cbe367ef9a31df229d3ec368 (diff)
Adjust routes for recent Mojolicious changes
-rw-r--r--index.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/index.pl b/index.pl
index 01dd760..8659232 100644
--- a/index.pl
+++ b/index.pl
@@ -652,13 +652,13 @@ get '/_imprint' => 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>.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;
+get '/<:stop>.html' => \&render_html;
+get '/<:stop>.json' => \&render_json;
+get '/<:stop>.png' => \&render_image;
get '/:stop' => \&handle_request;
app->config(