Expose terminal scan endpoint in public API middleware

This commit is contained in:
2569718930@qq.com
2026-04-24 03:01:53 +08:00
parent 98b88b178a
commit a13299b82c
4 changed files with 112 additions and 185 deletions
+1
View File
@@ -52,6 +52,7 @@ function isPublicApi(pathname: string) {
pathname === "/api/auth/me" ||
pathname === "/api/analytics/events" ||
pathname === "/api/cities" ||
pathname === "/api/scan/terminal" ||
pathname === "/api/vitals" ||
/^\/api\/city\/[^/]+$/i.test(pathname) ||
/^\/api\/city\/[^/]+\/summary$/i.test(pathname) ||