aboutsummaryrefslogtreecommitdiff
path: root/bot/src/api/routes/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/api/routes/settings.js')
-rw-r--r--bot/src/api/routes/settings.js4
1 files changed, 3 insertions, 1 deletions
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');