From 76245a9718013b7d371788d7c7bff1e2f2ed26b7 Mon Sep 17 00:00:00 2001 From: Ryan Kotval Date: Tue, 25 Jun 2024 09:17:40 -0500 Subject: [PATCH] fix(FinderApi): Handle bad params for the departures (#2105) --- lib/dotcom_web/controllers/schedule/finder_api.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/dotcom_web/controllers/schedule/finder_api.ex b/lib/dotcom_web/controllers/schedule/finder_api.ex index 2565b9900d..53e076c89e 100644 --- a/lib/dotcom_web/controllers/schedule/finder_api.ex +++ b/lib/dotcom_web/controllers/schedule/finder_api.ex @@ -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(