Current section

Files

Jump to
live_debugger lib live_debugger router.ex
Raw

lib/live_debugger/router.ex

defmodule LiveDebugger.Router do
use Phoenix.Router
import Phoenix.LiveView.Router
pipeline :dbg_browser do
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:put_root_layout, html: {LiveDebugger.Layout, :root})
plug(:protect_from_forgery)
plug(:put_secure_browser_headers)
plug(LiveDebugger.Plugs.AllowIframe)
end
scope "/", LiveDebugger do
pipe_through([:dbg_browser])
live("/", LiveViews.LiveViewsDashboardLive)
live("/transport_pid/:socket_id", LiveViews.ChannelDashboardLive)
live("/:transport_pid/:socket_id", LiveViews.ChannelDashboardLive)
end
end