From d7c46a9eae28046bb26da182abc298dc18ed5a10 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 23 Mar 2025 01:39:11 -0400 Subject: Replacing Astro with Next.JS; Prefix warning; Consistent env vars --- bot/src/api/routes/settings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bot/src/api/routes') diff --git a/bot/src/api/routes/settings.js b/bot/src/api/routes/settings.js index 68d8745..8757874 100644 --- a/bot/src/api/routes/settings.js +++ b/bot/src/api/routes/settings.js @@ -35,7 +35,9 @@ export function settingsRouter(client) { channels.push(channelInfo); }); - res.json(channels); + res.json({ + channels: channels + }); } catch (e) { console.error('Error fetching settings:', e); res.status(500).send('Internal Server Error'); -- cgit v1.2.3