Fix status route path to avoid 404
- Change route from '/status' to '/' since router is mounted at '/api/status' - Fixes HTML 404 response when client calls /api/status
This commit is contained in:
@@ -9,7 +9,7 @@ const { getGlobalWebhookMetrics } = require('../utils/cache');
|
|||||||
const { checkWebhookConfigured, aggregateMetrics } = require('../services/WebhookStatus');
|
const { checkWebhookConfigured, aggregateMetrics } = require('../services/WebhookStatus');
|
||||||
|
|
||||||
// Admin-only status page with cache stats
|
// Admin-only status page with cache stats
|
||||||
router.get('/status', requireAuth, async (req, res) => {
|
router.get('/', requireAuth, async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const user = req.user;
|
const user = req.user;
|
||||||
if (!user.isAdmin) {
|
if (!user.isAdmin) {
|
||||||
|
|||||||
Reference in New Issue
Block a user