重构大量文件

This commit is contained in:
2026-02-24 10:50:11 +08:00
parent dd97cf6a2c
commit 9efdf060f5
29 changed files with 264 additions and 133 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ export async function GET() {
tags: JSON.parse(p.tags || "[]")
}));
return NextResponse.json(parsedPages);
} catch (error) {
} catch {
return NextResponse.json({ error: 'Error fetching pages' }, { status: 500 });
}
}
@@ -41,7 +41,7 @@ export async function POST(request: Request) {
},
});
return NextResponse.json({ ...page, tags: JSON.parse(page.tags || "[]") });
} catch (error) {
} catch {
return NextResponse.json({ error: 'Error creating page' }, { status: 500 });
}
}