修复游客无法加载城市简报:middleware 白名单遗漏 detail 端点导致 401
This commit is contained in:
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user