defmodule ActionRequestsDemoWeb.Router do use ActionRequestsDemoWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, html: {ActionRequestsDemoWeb.Layouts, :root} plug :protect_from_forgery plug :put_secure_browser_headers end scope "/", ActionRequestsDemoWeb do pipe_through :browser live "/", ActionRequestsLive end end