summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 261753d..c96994b 100644
--- a/index.pl
+++ b/index.pl
@@ -334,6 +334,16 @@ sub handle_request {
is_cancelled => $result->can('is_cancelled')
? $result->is_cancelled
: undef,
+ messages => {
+ delay => [
+ map { { timestamp => $_->[0], text => $_->[1] } }
+ $result->delay_messages
+ ],
+ qos => [
+ map { { timestamp => $_->[0], text => $_->[1] } }
+ $result->qos_messages
+ ],
+ },
moreinfo => $moreinfo,
delay => $delay,
additional_stops => [ $result->additional_stops ],