Skip to content

Commit

Permalink
fallback when bad params are passed (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull authored May 29, 2024
1 parent b052f06 commit e235c6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dotcom_web/controllers/schedule/line_api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ defmodule DotcomWeb.ScheduleController.LineApi do
end
end

def realtime(conn, _params) do
return_invalid_arguments_error(conn)
end

defp do_realtime(route_id, direction_id, date, now, tooltips) do
headsigns_by_stop =
TransitNearMe.time_data_for_route_by_stop(
Expand Down

0 comments on commit e235c6a

Please sign in to comment.