joshvince / commuter

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

Busyness #24

Closed joshvince closed 7 years ago

joshvince commented 7 years ago

This PR adds an extra field to the response object returned when the /lines/:id endpoint is hit:

{..."current": "Much busier than normal"}

It's basically one function with a whole heap of business logic in. It's a bit repetitive, so it should be a candidate for refactoring at some point