feat: download announcements via react query

This commit is contained in:
redglow
2026-06-20 16:46:11 +02:00
parent 1323cfbf91
commit fb44a1cf95
10 changed files with 78 additions and 19 deletions
+1
View File
@@ -9,6 +9,7 @@ app.get("/hello", (_, res) => {
});
app.get("/api/announcements", async (_, res) => {
// await new Promise((resolve) => setTimeout(resolve, 1000));
const announcements = await db
.selectFrom("announcements")
.select(["id", "title", "text", "publication_date", "image"])