phase 5 dynamic alert registry (bot canonical, settings-site with fallback)

This commit is contained in:
2026-04-18 19:14:51 +00:00
parent e2443fd94a
commit 0f62fb9020
7 changed files with 334 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ const { ChannelType } = require('discord.js');
const { CONFIG } = require('../config');
const { applyConfigUpdates, readAllConfig } = require('../services/configPersistence');
const { logSystem } = require('../services/debugLog');
const { REGISTRY: NOTIFICATION_REGISTRY } = require('../services/notificationRegistry');
const router = express.Router();
@@ -209,4 +210,9 @@ router.get('/restart/status', (req, res) => {
res.json({ scheduledRestart: !!scheduledRestart });
});
// GET /notifications/alerts — canonical bot-side notification alert catalog
router.get('/notifications/alerts', (req, res) => {
res.json(NOTIFICATION_REGISTRY);
});
module.exports = router;