From 5399fc818cf821c75f9f19fd00bf7905ba7fe7e3 Mon Sep 17 00:00:00 2001 From: href Date: Fri, 3 Sep 2021 04:04:21 +0200 Subject: various fixes, web client wip, pubsub events --- lib/lsg_web/router.ex | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/lsg_web/router.ex') diff --git a/lib/lsg_web/router.ex b/lib/lsg_web/router.ex index d681ed9..5fcf0a8 100644 --- a/lib/lsg_web/router.ex +++ b/lib/lsg_web/router.ex @@ -5,8 +5,10 @@ defmodule LSGWeb.Router do plug :accepts, ["html", "txt"] plug :fetch_session plug :fetch_flash - #plug :protect_from_forgery - #plug :put_secure_browser_headers + plug :fetch_live_flash + plug :protect_from_forgery + plug :put_secure_browser_headers + plug :put_root_layout, {LSGWeb.LayoutView, :root} end pipeline :api do @@ -22,8 +24,6 @@ defmodule LSGWeb.Router do scope "/", LSGWeb do pipe_through :browser get "/", PageController, :index - get "/embed/widget", PageController, :widget - get "/api", PageController, :api get "/login/irc/:token", PageController, :token, as: :login get "/api/untappd/callback", UntappdController, :callback, as: :untappd_callback @@ -43,6 +43,7 @@ defmodule LSGWeb.Router do get "/:network/:chan/alcoolog/gls.json", AlcoologController, :index_gls_json put "/api/alcoolog/minisync/:user_id/meta/:key", AlcoologController, :minisync_put_meta get "/:network/:chan", IrcController, :index + live "/:network/:chan/live", ChatLive get "/:network/:chan/txt", IrcController, :txt get "/:network/:chan/txt/:name", IrcController, :txt get "/:network/:channel/preums", IrcController, :preums -- cgit v1.2.3