Page MenuHomePhorge

router.ex
No OneTemporary

Authored By
Unknown
Size
866 B
Referenced Files
None
Subscribers
None

router.ex

defmodule KolabChat.Router do
use KolabChat.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug KolabChat.Plugs.Locale
plug KolabChat.Plugs.SetUser
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", KolabChat do
pipe_through :browser
get "/", PageController, :index
end
scope "/chat", KolabChat do
pipe_through :browser
get "/", ChatController, :index
get "/:room", ChatController, :index
end
scope "/auth", KolabChat do
pipe_through :browser
post "/default/callback", AuthController, :default_callback
get "/logout", AuthController, :logout
end
# Other scopes may use custom stacks.
# scope "/api", KolabChat do
# pipe_through :api
# end
end

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 6, 3:18 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18832172
Default Alt Text
router.ex (866 B)

Event Timeline