phase 5 dynamic alert registry (bot canonical, settings-site with fallback)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user