summaryrefslogtreecommitdiff
path: root/lib/lsg_web/router.ex
diff options
context:
space:
mode:
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