diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-20 17:45:41 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-20 17:45:41 +0100 |
commit | 0226713c1d1839f2ffac41a1000180c0089afe9d (patch) | |
tree | 1132698a50535e81bcd06eaac56ba7320d944503 /index.pl | |
parent | 531f3b0a68ace87dc514a1350971b647c39633b5 (diff) |
use camelCase instead of snake_case in public API
Diffstat (limited to 'index.pl')
-rwxr-xr-x | index.pl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1117,9 +1117,9 @@ get '/api/v0/:action/:token' => sub { line => $status->{train_line}, no => $status->{train_no}, }, - action_ts => $status->{timestamp}->epoch, - sched_ts => $status->{sched_ts}->epoch, - real_ts => $status->{real_ts}->epoch, + actionTime => $status->{timestamp}->epoch, + scheduledTime => $status->{sched_ts}->epoch, + realTime => $status->{real_ts}->epoch, }, ); } |