defmodule DashboardWeb.Router do use DashboardWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, {DashboardWeb.LayoutView, :root} plug :protect_from_forgery plug :put_secure_browser_headers end scope "/", DashboardWeb do pipe_through :browser live "/", Live.MainLive, :index end end