feat(config): add API route for app configuration and update related logic for monitor guild

This commit is contained in:
MythEclipse
2026-06-01 11:16:07 +07:00
parent 49e9197ce0
commit 8310e58239
10 changed files with 154 additions and 32 deletions
+15
View File
@@ -0,0 +1,15 @@
import type { Router } from "express";
import express from "express";
import { config } from "../config.js";
export function createAppConfigRoutes(): Router {
const router = express.Router();
router.get("/config", (_req, res) => {
res.json({
monitorGuildId: config.MONITOR_GUILD_ID ?? null,
});
});
return router;
}