Current section
Files
Jump to
Current section
Files
lib/live_debugger_web/router.ex
defmodule LiveDebuggerWeb.Router do
use Phoenix.Router, helpers: false
import Phoenix.LiveView.Router
pipeline :dbg_browser do
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:fetch_live_flash)
plug(:put_root_layout, html: {LiveDebuggerWeb.Layout, :root})
plug(:protect_from_forgery)
plug(:put_secure_browser_headers)
plug(LiveDebuggerWeb.Plugs.AllowIframe)
end
scope "/", LiveDebuggerWeb do
pipe_through([:dbg_browser])
live("/", LiveViewsDashboardLive)
live("/transport_pid/:socket_id", ChannelDashboardLive)
live("/:transport_pid/:socket_id", ChannelDashboardLive)
end
end