修复游客无法加载城市简报:middleware 白名单遗漏 detail 端点导致 401

This commit is contained in:
2569718930@qq.com
2026-05-18 19:22:51 +08:00
parent ff420c4bec
commit 6bdad2eae9
+1
View File
@@ -40,6 +40,7 @@ function isPublicApi(pathname: string) {
pathname === "/api/vitals" ||
/^\/api\/city\/[^/]+$/i.test(pathname) ||
/^\/api\/city\/[^/]+\/summary$/i.test(pathname) ||
/^\/api\/city\/[^/]+\/detail$/i.test(pathname) ||
/^\/api\/city\/[^/]+\/market-scan$/i.test(pathname)
);
}