This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
augie/webapp/lib/augie_web/router.ex

28 lines
522 B
Elixir
Raw Normal View History

2019-11-29 17:55:52 +13:00
defmodule AugieWeb.Router do
use AugieWeb, :router
pipeline :browser do
2019-12-01 17:11:36 +13:00
plug(:accepts, ["html"])
plug(:fetch_session)
plug(:fetch_flash)
plug(Phoenix.LiveView.Flash)
plug(:protect_from_forgery)
plug(:put_secure_browser_headers)
2019-11-29 17:55:52 +13:00
end
pipeline :api do
2019-12-01 17:11:36 +13:00
plug(:accepts, ["json"])
2019-11-29 17:55:52 +13:00
end
scope "/", AugieWeb do
2019-12-01 17:11:36 +13:00
pipe_through(:browser)
2019-11-29 17:55:52 +13:00
2019-12-01 17:11:36 +13:00
get("/", PageController, :index)
2019-11-29 17:55:52 +13:00
end
# Other scopes may use custom stacks.
# scope "/api", AugieWeb do
# pipe_through :api
# end
end