diff options
| author | Melonai <einebeere@gmail.com> | 2021-05-08 23:41:03 +0200 |
|---|---|---|
| committer | Melonai <einebeere@gmail.com> | 2021-05-08 23:41:03 +0200 |
| commit | 09693b979efe3c9c7ea64f79d97a1f0b53f7c49e (patch) | |
| tree | 13719bb4800c1510a70f96f3e81f96f80ef960a2 /lib/rook_web/controllers/app_controller.ex | |
| parent | 88c0fbf10145ddd4ccd10ee432b4ca1aadd96a91 (diff) | |
| download | rook-09693b979efe3c9c7ea64f79d97a1f0b53f7c49e.tar.zst rook-09693b979efe3c9c7ea64f79d97a1f0b53f7c49e.zip | |
Socket connection and token fetching
Diffstat (limited to 'lib/rook_web/controllers/app_controller.ex')
| -rw-r--r-- | lib/rook_web/controllers/app_controller.ex | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/rook_web/controllers/app_controller.ex b/lib/rook_web/controllers/app_controller.ex index 4c36fda..9e36f3c 100644 --- a/lib/rook_web/controllers/app_controller.ex +++ b/lib/rook_web/controllers/app_controller.ex @@ -1,8 +1,6 @@ defmodule RookWeb.AppController do use RookWeb, :controller - plug :add_token - def share(conn, _params) do render(conn, "share.html") end @@ -10,12 +8,4 @@ defmodule RookWeb.AppController do def request(conn, _params) do render(conn, "request.html") end - - defp add_token(conn, _params) do - if conn.assigns[:token] do - conn - else - assign(conn, :token, Rook.Utils.Token.token()) - end - end end |
