Skip to content

Commit

Permalink
fix(FinderApi): Handle bad params for the departures (#2105)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotva006 authored Jun 25, 2024
1 parent a0db4db commit 76245a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dotcom_web/controllers/schedule/finder_api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ defmodule DotcomWeb.ScheduleController.FinderApi do
json(conn, journeys)
end

def departures(conn, _) do
ControllerHelpers.return_invalid_arguments_error(conn)
end

@spec get_trip_info(Plug.Conn.t(), Trip.id_t(), Route.t(), String.t(), String.t(), String.t()) ::
Plug.Conn.t()
def get_trip_info(
Expand Down

0 comments on commit 76245a9

Please sign in to comment.