From c98ddad3263f6859af3c5c76fa197876743d5ded Mon Sep 17 00:00:00 2001 From: href Date: Fri, 2 Feb 2018 21:35:46 +0100 Subject: sse / embedded player --- lib/lsg_web/router.ex | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/lsg_web/router.ex') 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 -- cgit v1.2.3