summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-08-25 10:34:38 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-08-25 10:34:38 +0200
commitd26953d13e9bb5a148581cb60b3333b7adad5565 (patch)
tree836618ea3f3437650c60718bc91531e4339e0209
parent6cbc8c554f54ded4ebabc9e56dd25aa19226c69f (diff)
fix /cancelled.json
Closes #155
-rwxr-xr-xlib/Travelynx.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 3c902e5..0c8d0f2 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -2397,7 +2397,8 @@ sub startup {
$authed_r->get('/account/traewelling')->to('traewelling#settings');
$authed_r->get('/account/insight')->to('account#insight');
$authed_r->get('/ajax/status_card.html')->to('traveling#status_card');
- $authed_r->get('/cancelled')->to('traveling#cancelled');
+ $authed_r->get( '/cancelled' => [ format => [ 'html', 'json' ] ] )
+ ->to( 'traveling#cancelled', format => undef );
$authed_r->get('/fgr')->to('passengerrights#list_candidates');
$authed_r->get('/account/password')->to('account#password_form');
$authed_r->get('/account/mail')->to('account#change_mail');