Changeset View
Changeset View
Standalone View
Standalone View
larus/web/router.ex
defmodule Larus.Router do | defmodule Larus.Router do | ||||
use Larus.Web, :router | use Larus.Web, :router | ||||
pipeline :browser do | pipeline :browser do | ||||
plug :accepts, ["html"] | plug :accepts, ["html"] | ||||
plug :fetch_session | plug :fetch_session | ||||
plug :fetch_flash | plug :fetch_flash | ||||
plug :protect_from_forgery | plug :protect_from_forgery | ||||
plug :put_secure_browser_headers | plug :put_secure_browser_headers | ||||
plug Larus.Plug.Locale, "en" | |||||
end | end | ||||
pipeline :api do | pipeline :api do | ||||
plug :accepts, ["json"] | plug :accepts, ["json"] | ||||
end | end | ||||
scope "/", Larus do | scope "/", Larus do | ||||
pipe_through :browser # Use the default browser stack | pipe_through :browser # Use the default browser stack | ||||
Show All 9 Lines |