From 7c7d9f7b513938fd69d2aabd96c2b3065d5a5f14 Mon Sep 17 00:00:00 2001 From: Rene Fichtmueller Date: Sun, 5 Apr 2026 12:07:44 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20make=20/api/hot-topics=20public=20?= =?UTF-8?q?=E2=80=94=20dashboard=20fetch=20has=20no=20auth=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/api/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts index 2f6296d..62e7def 100644 --- a/packages/api/src/index.ts +++ b/packages/api/src/index.ts @@ -56,9 +56,10 @@ app.use("/api/proxy", proxyRouter); // All other API routes require a valid token app.use("/api", (req, res, next) => { - // Always allow: health check, auth endpoints, proxy public routes + // Always allow: health check, auth endpoints, proxy public routes, hot-topics (public market data) if (req.path.startsWith("/health") || req.path.startsWith("/auth")) return next(); if (req.path.startsWith("/proxy")) return next(); + if (req.path.startsWith("/hot-topics")) return next(); requireAuth(req, res, next); });