Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 563 Bytes
defmodule DemoWeb.Router do
use DemoWeb, :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 "/", DemoWeb do
pipe_through :browser
get "/", PageController, :index
# Add this resource to your browser scope
resources "/todos", TodoController
end
# Other scopes may use custom stacks.
# scope "/api", DemoWeb do
# pipe_through :api
# end
end
You can’t perform that action at this time.