upgrade plv (0.15.4) && phx (1.5.7)

This commit is contained in:
Matthew Ryan Dillon 2021-01-31 14:11:53 -07:00
parent 7aa0059c96
commit 2d9b8774a0
5 changed files with 12 additions and 27 deletions

View file

@ -35,10 +35,6 @@ defmodule PlannerWeb.Endpoint do
plug Phoenix.Ecto.CheckRepoStatus, otp_app: :planner
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

@ -22,22 +22,6 @@ defmodule PlannerWeb.Router 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: PlannerWeb.Telemetry)
end
end
scope "/", PlannerWeb do
pipe_through([:browser, :redirect_if_user_is_authenticated])