summaryrefslogtreecommitdiff
path: root/lib/lsg_web/controllers/page_controller.ex
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-17 13:47:11 +0000
committerJordan Bracco <href@random.sh>2022-12-20 19:29:41 +0100
commitfd4afd7c7acd9b5fda75b628a7e19d0149d8b889 (patch)
treedf571d49fa9dc9c3cd58c94033b9fc81c7b7f8ec /lib/lsg_web/controllers/page_controller.ex
parentRename to Nola, pt. 1. Refs T77 (diff)
Nola rename cont. pt. 2. Refs T77.
`find lib -name "*.ex" -type f | xargs sed -i '' 's/LSG/Nola/g'`
Diffstat (limited to '')
-rw-r--r--lib/lsg_web/controllers/page_controller.ex12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/lsg_web/controllers/page_controller.ex b/lib/lsg_web/controllers/page_controller.ex
index 94c9c70..2ac4d0a 100644
--- a/lib/lsg_web/controllers/page_controller.ex
+++ b/lib/lsg_web/controllers/page_controller.ex
@@ -1,12 +1,12 @@
-defmodule LSGWeb.PageController do
- use LSGWeb, :controller
+defmodule NolaWeb.PageController do
+ use NolaWeb, :controller
- plug LSGWeb.ContextPlug when action not in [:token]
- plug LSGWeb.ContextPlug, [restrict: :public] when action in [:token]
+ plug NolaWeb.ContextPlug when action not in [:token]
+ plug NolaWeb.ContextPlug, [restrict: :public] when action in [:token]
def token(conn, %{"token" => token}) do
with \
- {:ok, account, perks} <- LSG.AuthToken.lookup(token)
+ {:ok, account, perks} <- Nola.AuthToken.lookup(token)
do
IO.puts("Authenticated account #{inspect account}")
conn = put_session(conn, :account, account)
@@ -33,7 +33,7 @@ defmodule LSGWeb.PageController do
end
def irc(conn, _) do
- bot_helps = for mod <- LSG.IRC.env(:handlers) do
+ bot_helps = for mod <- Nola.IRC.env(:handlers) do
mod.irc_doc()
end
render conn, "irc.html", bot_helps: bot_helps