25/lib/mse25_web/router.ex
Anders Englöf Ytterström 8e1f1bae97 Initiate next madr.se site
mix phx.new mse25 \
  --no-ecto \
  --no-tailwind \
  --no-dashboard \
  --no-live \
  --no-mailer
2024-09-04 10:12:36 +02:00

27 lines
544 B
Elixir

defmodule Mse25Web.Router do
use Mse25Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, html: {Mse25Web.Layouts, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Mse25Web do
pipe_through :browser
get "/", PageController, :home
end
# Other scopes may use custom stacks.
# scope "/api", Mse25Web do
# pipe_through :api
# end
end