fix /cancelled.json

Closes #155
This commit is contained in:
Birte Kristina Friesel 2024-08-25 10:34:38 +02:00
parent 6cbc8c554f
commit d26953d13e
No known key found for this signature in database
GPG key ID: B63118F7196EA660

View file

@ -2397,7 +2397,8 @@ sub startup {
$authed_r->get('/account/traewelling')->to('traewelling#settings'); $authed_r->get('/account/traewelling')->to('traewelling#settings');
$authed_r->get('/account/insight')->to('account#insight'); $authed_r->get('/account/insight')->to('account#insight');
$authed_r->get('/ajax/status_card.html')->to('traveling#status_card'); $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('/fgr')->to('passengerrights#list_candidates');
$authed_r->get('/account/password')->to('account#password_form'); $authed_r->get('/account/password')->to('account#password_form');
$authed_r->get('/account/mail')->to('account#change_mail'); $authed_r->get('/account/mail')->to('account#change_mail');