From 45344bbd387c2324c713471079143ecaace43afc Mon Sep 17 00:00:00 2001 From: Conduitry Date: Tue, 12 Oct 2021 09:59:22 -0400 Subject: [PATCH] fix /chat redirect endpoint --- site/src/routes/chat.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/site/src/routes/chat.js b/site/src/routes/chat.js index 2fdeda2675..7db1ae506d 100644 --- a/site/src/routes/chat.js +++ b/site/src/routes/chat.js @@ -1,4 +1,6 @@ -export function get(req, res) { - res.writeHead(302, { Location: 'https://discord.gg/yy75DKs' }); - res.end(); -} \ No newline at end of file +export function get() { + return { + status: 302, + headers: { Location: 'https://discord.gg/yy75DKs' }, + }; +}