Changeset View
Changeset View
Standalone View
Standalone View
web/router.ex
defmodule KolabChat.Router do | defmodule KolabChat.Router do | ||||
use KolabChat.Web, :router | use KolabChat.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 KolabChat.Locale | |||||
end | end | ||||
pipeline :api do | pipeline :api do | ||||
plug :accepts, ["json"] | plug :accepts, ["json"] | ||||
end | end | ||||
scope "/", KolabChat do | scope "/", KolabChat do | ||||
pipe_through :browser # Use the default browser stack | pipe_through :browser # Use the default browser stack | ||||
Show All 9 Lines |