T INSTALLED
=back
=cut
hook before => sub {
response_header 'Content-Type' => 'application/json';
};
=head1 ROUTES
=head2 GET /map-tube/v1/shortest-route/:map/:start/:end
Return the shortest
C<$start> to C<$end> in the C<$map>.
Returns ref to an array of shortest route stations list in JSON format.
For example:
curl http://127.0.0.1:5000/map-tube/v1/shortest-route/london/baker%20s
t};
};
=head2 GET /map-tube/v1/stations/:map/:line
Returns ref to an array of stations list in JSON format for the given C<map> and
C<line>. The C<map> can be any of the supported maps. And the C<