diff src/lib/Shared.luan @ 14:80105b716a62

start bot
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 31 Oct 2023 23:56:48 -0600
parents af2b95854072
children 552d6f944acb
line wrap: on
line diff
--- a/src/lib/Shared.luan	Mon Oct 30 21:32:42 2023 -0600
+++ b/src/lib/Shared.luan	Tue Oct 31 23:56:48 2023 -0600
@@ -52,9 +52,14 @@
 <%
 end
 
-function Shared.discord_redirect_uri()
+local function base_url()
 	local request = Http.request
-	return request.scheme.."://"..request.headers["Host"].."/login2.html"
+	return request.scheme.."://"..request.headers["Host"]
+end
+Shared.base_url = base_url
+
+function Shared.discord_redirect_uri()
+	return base_url().."/login2.html"
 end
 
 function Shared.js_error(field,message)