summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-20 17:45:41 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-20 17:45:41 +0100
commit0226713c1d1839f2ffac41a1000180c0089afe9d (patch)
tree1132698a50535e81bcd06eaac56ba7320d944503 /index.pl
parent531f3b0a68ace87dc514a1350971b647c39633b5 (diff)
use camelCase instead of snake_case in public API
Diffstat (limited to 'index.pl')
-rwxr-xr-xindex.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.pl b/index.pl
index 8cd45dd..de1fc08 100755
--- a/index.pl
+++ b/index.pl
@@ -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,
},
);
}