修改api路径

This commit is contained in:
2025-10-22 19:47:56 +08:00
parent 657c8320b5
commit 5868407216
10 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export default function TasksPage() {
controllers.current.set(task.id, ctrl);
setTasks(prev => prev.map(t => t.id === task.id ? { ...t, status: "running", startedAt: Date.now(), error: undefined } : t));
try {
const res = await fetch(`/fetcher?url=${encodeURIComponent(task.url)}`, { signal: ctrl.signal, method: "GET" });
const res = await fetch(`/api/fetcher?url=${encodeURIComponent(task.url)}`, { signal: ctrl.signal, method: "GET" });
const data = await res.json().catch(() => null);
if (!res.ok) {