awesome-compose/phoenix-postgres/app/lib/app_web/router.ex
manolis kousanakis f156dfb52c Sample for phoenix(elixir)-postgres
Signed-off-by: Manolis Kousanakis <ekousanakis@gmail.com>
2020-05-06 21:30:04 +03:00

27 lines
473 B
Elixir

defmodule AppWeb.Router do
use AppWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", AppWeb do
pipe_through :browser
get "/", PageController, :index
end
# Other scopes may use custom stacks.
# scope "/api", AppWeb do
# pipe_through :api
# end
end