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

22 lines
390 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_live_flash)
2019-12-01 17:11:36 +13:00
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 "/" do
2019-12-01 17:11:36 +13:00
pipe_through(:browser)
2019-11-29 17:55:52 +13:00
get("/", AugieWeb.PageController, :index)
end
2019-11-29 17:55:52 +13:00
end