From e218255441cb602593528d721ea31f9b8d849f8d Mon Sep 17 00:00:00 2001 From: oat Date: Mon, 12 Oct 2020 05:02:45 +0300 Subject: [PATCH] unhardcode base url (i think closes #3?) --- src/auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth.ts b/src/auth.ts index 5780721..d92dd75 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -59,7 +59,8 @@ export function run(app) { res.send(`whoooops
${err}`); } } else { - res.send(`Click here!!`); + const url = `http://${req.headers.host}/discordauth`; + res.send(`Click here!!`); } }); } \ No newline at end of file