legendary-doc-site/apps/content_web/lib/content_web/router.ex
2020-07-20 19:15:11 +00:00

21 lines
386 B
Elixir

defmodule ContentWeb.Router do
use ContentWeb, :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 "/", ContentWeb do
pipe_through :browser
get "/:id", PageController, :show
end
end