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
+2 -1
View File
@@ -1,4 +1,5 @@
import { NextRequest, NextResponse } from "next/server";
import { buildBackendRequestHeaders } from "@/lib/backend-auth";
const API_BASE = process.env.POLYWEATHER_API_BASE_URL;
@@ -26,7 +27,7 @@ export async function GET(
try {
const res = await fetch(url, {
headers: { Accept: "application/json" },
headers: buildBackendRequestHeaders(),
cache: "no-store",
});
if (!res.ok) {
+2 -1
View File
@@ -1,4 +1,5 @@
import { NextRequest, NextResponse } from "next/server";
import { buildBackendRequestHeaders } from "@/lib/backend-auth";
const API_BASE = process.env.POLYWEATHER_API_BASE_URL;
@@ -19,7 +20,7 @@ export async function GET(
try {
const res = await fetch(url, {
headers: { Accept: "application/json" },
headers: buildBackendRequestHeaders(),
cache: "no-store",
});
if (!res.ok) {
@@ -1,4 +1,5 @@
import { NextRequest, NextResponse } from "next/server";
import { buildBackendRequestHeaders } from "@/lib/backend-auth";
const API_BASE = process.env.POLYWEATHER_API_BASE_URL;
@@ -19,7 +20,7 @@ export async function GET(
try {
const res = await fetch(url, {
headers: { Accept: "application/json" },
headers: buildBackendRequestHeaders(),
cache: "no-store",
});
if (!res.ok) {