Skip to content

Commit

Permalink
remove dashboard from router
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Nelson committed May 27, 2024
1 parent 4643f46 commit 2087b6b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/live_elements_testbed_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,4 @@ defmodule LiveElementsTestbedWeb.Router do
# pipe_through :api
# end

# Enable LiveDashboard and Swoosh mailbox preview in development
if Application.compile_env(:live_elements_testbed, :dev_routes) do
# 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).
import Phoenix.LiveDashboard.Router

scope "/dev" do
pipe_through :browser

live_dashboard "/dashboard", metrics: LiveElementsTestbedWeb.Telemetry
forward "/mailbox", Plug.Swoosh.MailboxPreview
end
end
end

0 comments on commit 2087b6b

Please sign in to comment.