Skip to content

Commit

Permalink
fix: No default routes (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
taorepoara authored Sep 19, 2023
1 parent 6950f85 commit 37cd738
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libs/application_runner/lib/environment/manifest_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ defmodule ApplicationRunner.Environment.ManifestHandler do
{:reply, Map.get(state, :manifest), state}
end

@default_routes [%{"path" => "/", "view" => %{"_type" => "view", "name" => "main"}}]

def handle_call(:get_lenra_routes, _from, state) do
Logger.debug("#{__MODULE__} handle call for :get_lenra_routes with #{inspect(state)}")

Expand All @@ -76,7 +74,7 @@ defmodule ApplicationRunner.Environment.ManifestHandler do

defp get_exposer_routes(manifest, exposer) do
manifest
|> Map.get(exposer, %{"routes" => @default_routes})
|> Map.get("routes", @default_routes)
|> Map.get(exposer, %{"routes" => []})
|> Map.get("routes", [])
end
end

0 comments on commit 37cd738

Please sign in to comment.