Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117888396
router.ex
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
866 B
Referenced Files
None
Subscribers
None
router.ex
View Options
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
Details
Attached
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)
Attached To
Mode
rKC kolab-chat
Attached
Detach File
Event Timeline