This commit is contained in:
Pim Kunis 2022-10-11 08:55:32 +02:00
parent 4119328864
commit 5dfd11f31e
10 changed files with 22 additions and 93 deletions

View file

@ -30,10 +30,6 @@ defmodule EisromUiWeb.Endpoint do
plug Phoenix.CodeReloader
end
plug Phoenix.LiveDashboard.RequestLogger,
param_key: "request_logger",
cookie_key: "request_logger"
plug Plug.RequestId
plug Plug.Telemetry, event_prefix: [:phoenix, :endpoint]

View file

@ -27,26 +27,4 @@ defmodule EisromUiWeb.Router do
get "/OB13", PageController, :morse
get "/seinlamp", PageController, :morse
end
# Other scopes may use custom stacks.
# scope "/api", EisromUiWeb do
# pipe_through :api
# end
# Enables LiveDashboard only for development
#
# If you want to use the LiveDashboard in production, you should put
# it behind authentication and allow only admins to access it.
# If your application does not have an admins-only section yet,
# you can use Plug.BasicAuth to set up some basic authentication
# as long as you are also using SSL (which you should anyway).
if Mix.env() in [:dev, :test] do
import Phoenix.LiveDashboard.Router
scope "/" do
pipe_through :browser
live_dashboard "/dashboard", metrics: EisromUiWeb.Telemetry
end
end
end

View file

@ -1,7 +1,4 @@
defmodule EisromUiWeb.LayoutView do
use EisromUiWeb, :view
# Phoenix LiveDashboard is available only in development by default,
# so we instruct Elixir to not warn if the dashboard route is missing.
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
end