feat: Introduce a web frontend with new city API routes and refactor bot city query logic into a dedicated service.

This commit is contained in:
2569718930@qq.com
2026-03-11 08:46:32 +08:00
parent b1e75d13d8
commit af4bee12f5
15 changed files with 893 additions and 633 deletions
+14
View File
@@ -0,0 +1,14 @@
export const BACKEND_ENTITLEMENT_HEADER = "x-polyweather-entitlement";
export function buildBackendRequestHeaders(): HeadersInit {
const headers: HeadersInit = {
Accept: "application/json",
};
const token = process.env.POLYWEATHER_BACKEND_ENTITLEMENT_TOKEN?.trim();
if (token) {
headers[BACKEND_ENTITLEMENT_HEADER] = token;
}
return headers;
}