Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
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