summaryrefslogtreecommitdiff
path: root/lib/untappd.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/untappd.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 'lib/untappd.ex')
-rw-r--r--lib/untappd.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/untappd.ex b/lib/untappd.ex
index 1f78376..d5ac904 100644
--- a/lib/untappd.ex
+++ b/lib/untappd.ex
@@ -6,14 +6,14 @@ defmodule Untappd do
def auth_url() do
client_id = Keyword.get(env(), :client_id)
- url = LSGWeb.Router.Helpers.untappd_callback_url(LSGWeb.Endpoint, :callback)
+ url = NolaWeb.Router.Helpers.untappd_callback_url(NolaWeb.Endpoint, :callback)
"https://untappd.com/oauth/authenticate/?client_id=#{client_id}&response_type=code&redirect_url=#{URI.encode(url)}"
end
def auth_callback(code) do
client_id = Keyword.get(env(), :client_id)
client_secret = Keyword.get(env(), :client_secret)
- url = LSGWeb.Router.Helpers.untappd_callback_url(LSGWeb.Endpoint, :callback)
+ url = NolaWeb.Router.Helpers.untappd_callback_url(NolaWeb.Endpoint, :callback)
params = %{
"client_id" => client_id,
"client_secret" => client_secret,