mirror of
https://github.com/danbee/tube-status-server
synced 2025-03-04 08:39:12 +00:00
Add messages to now.
This commit is contained in:
parent
5d21de346d
commit
c41b7823ff
@ -27,7 +27,7 @@ class Tubestatus < Sinatra::Base
|
||||
{ :id => line["Line"].first["Name"].downcase.gsub(/ (and)?/, ""),
|
||||
:name => line["Line"].first["Name"],
|
||||
:status => line["Status"].first["Description"].downcase,
|
||||
:messages => [] }
|
||||
:messages => line["StatusDetails"].empty? ? [] : [line["StatusDetails"]] }
|
||||
end
|
||||
|
||||
JSON data
|
||||
|
||||
Loading…
Reference in New Issue
Block a user