Remove stuff including the chat function & TOS & Privacy Policy windows

& simplified the archive URL.
This commit is contained in:
yuanhau 2025-07-06 17:50:35 +08:00
parent aa8fb3a2d2
commit 3a3c2c81e2
14 changed files with 20 additions and 573 deletions

View file

@ -0,0 +1,11 @@
import sql from "~/server/components/postgres";
export default defineEventHandler(async (event) => {
const articles = await sql`
SELECT * FROM news_articles;
`;
setHeaders(event, {
"Content-Type": "application/json",
"Content-Disposition": `attachment; filename="news-articles-export-${new Date().toISOString().split("T")[0]}.json"`,
});
return articles;
});