joshvince / commuter

The Node.js version of a web service that provides additional data about the London Underground
0 stars 0 forks source link

serves json rather than int #5

Closed joshvince closed 7 years ago

joshvince commented 7 years ago

When the /lines/:id is hit, this now serves a payload of json rather than just the score.

The payload has this schema:

{
  current: "No Problems",
  lastHour: "Some Problems"
}

This is ready for the other app to consume somehow.