summaryrefslogtreecommitdiff
path: root/lib/lsg_web/router.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2018-02-02 21:35:46 +0100
committerhref <href@random.sh>2018-02-02 21:35:46 +0100
commitc98ddad3263f6859af3c5c76fa197876743d5ded (patch)
tree9e20617da1089e918e0445162dc9bd8eb54f3459 /lib/lsg_web/router.ex
parentimport (diff)
sse / embedded player
Diffstat (limited to '')
-rw-r--r--lib/lsg_web/router.ex11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/lsg_web/router.ex b/lib/lsg_web/router.ex
index 773a4c2..db0e5cd 100644
--- a/lib/lsg_web/router.ex
+++ b/lib/lsg_web/router.ex
@@ -3,14 +3,14 @@ defmodule LSGWeb.Router do
pipeline :browser do
plug :accepts, ["html"]
- plug :fetch_session
- plug :fetch_flash
- plug :protect_from_forgery
- plug :put_secure_browser_headers
+ #plug :fetch_session
+ #plug :fetch_flash
+ #plug :protect_from_forgery
+ #plug :put_secure_browser_headers
end
pipeline :api do
- plug :accepts, ["json"]
+ plug :accepts, ["json", "sse"]
end
scope "/", LSGWeb do
@@ -22,5 +22,6 @@ defmodule LSGWeb.Router do
scope "/api", LSGWeb do
pipe_through :api
get "/icecast.json", PageController, :icecast
+ get "/icecast.sse", IcecastSseController, :sse
end
end