diff options
author | Derf Null <derf@finalrewind.org> | 2023-05-21 19:44:43 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-05-21 19:44:43 +0200 |
commit | dbc5c38968a11ac17dc99723bc8866de9f739c28 (patch) | |
tree | 63978b9e129174c2605677d662907bdacc474e60 /lib/Travelynx/Controller/Api.pm | |
parent | 2e10115072b8ef90c9f08662ef18619e66899f4a (diff) |
get_user_status_json_v1: add public flag to hide actionTime
Diffstat (limited to 'lib/Travelynx/Controller/Api.pm')
-rwxr-xr-x | lib/Travelynx/Controller/Api.pm | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/Travelynx/Controller/Api.pm b/lib/Travelynx/Controller/Api.pm index 0f92c84..0410fc6 100755 --- a/lib/Travelynx/Controller/Api.pm +++ b/lib/Travelynx/Controller/Api.pm @@ -93,7 +93,7 @@ sub get_v1 { return; } if ( $api_action eq 'status' ) { - $self->render( json => $self->get_user_status_json_v1($uid) ); + $self->render( json => $self->get_user_status_json_v1( uid => $uid ) ); } else { $self->render( @@ -166,7 +166,7 @@ sub travel_v1 { success => \0, deprecated => \0, error => 'Missing or invalid action', - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) }, ); return; @@ -190,7 +190,7 @@ sub travel_v1 { success => \0, deprecated => \0, error => 'Missing fromStation or train data', - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) }, ); return; @@ -202,7 +202,7 @@ sub travel_v1 { success => \0, deprecated => \0, error => 'Unknown fromStation', - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) }, ); return; @@ -214,7 +214,7 @@ sub travel_v1 { success => \0, deprecated => \0, error => 'Unknown toStation', - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) }, ); return; @@ -238,7 +238,7 @@ sub travel_v1 { error => 'Error requesting departures from fromStation: ' . $status->{errstr}, - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) } ); return; @@ -253,7 +253,7 @@ sub travel_v1 { success => \0, deprecated => \0, error => 'Train not found at fromStation', - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) } ); return; @@ -285,7 +285,7 @@ sub travel_v1 { success => \0, deprecated => \0, error => 'Checkin/Checkout error: ' . $error, - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) } ); } @@ -294,7 +294,7 @@ sub travel_v1 { json => { success => \1, deprecated => \0, - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) } ); } @@ -308,7 +308,7 @@ sub travel_v1 { success => \0, deprecated => \0, error => 'Missing toStation', - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) }, ); return; @@ -332,7 +332,7 @@ sub travel_v1 { success => \0, deprecated => \0, error => 'Checkout error: ' . $error, - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) } ); } @@ -341,7 +341,7 @@ sub travel_v1 { json => { success => \1, deprecated => \0, - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) } ); } @@ -354,7 +354,7 @@ sub travel_v1 { success => \0, deprecated => \0, error => $error, - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) } ); } @@ -363,7 +363,7 @@ sub travel_v1 { json => { success => \1, deprecated => \0, - status => $self->get_user_status_json_v1($uid) + status => $self->get_user_status_json_v1( uid => $uid ) } ); } |