API Updates
Deploy / deploy (push) Successful in 2m33s

This commit is contained in:
twotalesanimation
2026-07-08 19:54:24 +02:00
parent b27aa1788f
commit 77cfcbc9e9
+6
View File
@@ -24,6 +24,12 @@ export default auth((req) => {
// Allow external/scripting API routes (authenticated via API key header)
if (pathname.startsWith("/api/ext/")) return;
// Allow display device routes (ESP32 dot-matrix, authenticated via API key header)
if (pathname.startsWith("/api/display/")) return;
// Allow dashboard stats via display key (ESP32 polls this)
if (pathname === "/api/dashboard/stats") return;
// Allow local file serving (needed for video playback in client portal)
if (pathname.startsWith("/api/files/")) return;