Current section
Files
Jump to
Current section
Files
templates/combo_saas/lib/user_web/router.ex
defmodule ComboSaaS.UserWeb.Router do
use ComboSaaS.UserWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, html: {ComboSaaS.UserWeb.Layouts, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
scope "/", ComboSaaS.UserWeb do
pipe_through :browser
get "/", PageController, :home
end
# Enable Swoosh mailbox preview in development
if Application.compile_env(:combo_saas, :dev_routes) do
scope "/dev" do
pipe_through :browser
forward "/mailbox", Plug.Swoosh.MailboxPreview
end
end
end