fix: make /api/config and /api/services/status public endpoints

These endpoints must be accessible without TOTP auth for the dashboard
to load site config (TLD, DNS servers, custom logo) and service status
(bulk probe results). Without them, the dashboard shows all services
as OFF and loses custom branding after any session expiry.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
SamiandClaude Opus 4.6 committed 2026-04-01 01:10:24 -07:00
1 parent 80bff25af9
commit 9e24f33465
1 file changed
+2
+2
View File
@@ -297,6 +297,8 @@ module.exports = function configureMiddleware(app, {
{ path: '/api/themes', exact: true, method: 'GET' },
{ path: '/api/license/status', exact: true, method: 'GET' },
{ path: '/api/license/feature/', prefix: true, method: 'GET' },
{ path: '/api/config', exact: true, method: 'GET' },
{ path: '/api/services/status', exact: true, method: 'GET' },
];
function isPublicRoute(req) {